Re: Honeycomb REST API - not able to delete sub-interfaces

Nilesh GAVASKAR <nilesh.gavaskar@...>

Ah Ok.
Thanks Marek. I hadn't seen the 'unsupported operation' part.

I had checked the vpp cli and knew that there was no command for this (like there are no deletes for many other create commands) but I was hoping that HC had a way to do it.

Let me check with the vpp devs - whether they have plans to add this functionality.


On Aug 19, 2016 1:10 AM, "Marek Gradzki -X (mgradzki - PANTHEON TECHNOLOGIES at Cisco)" <mgradzki@...> wrote:



Vpp does not allow sub interface delete. Therefore it is also not permitted by HC.

If you take a look at the bottom of the exception chain, you should see UnsupportedOperationException

with message "Sub interface delete is not supported".





From: [] On Behalf Of Nilesh GAVASKAR
Sent: 18 sierpnia 2016 02:10
To: honeycomb-dev@...
Subject: [honeycomb-dev] Honeycomb REST API - not able to delete sub-interfaces




I have been trying to delete sub-interfaces added under an interface object on VPP using the Honeycomb API. 

This command for deleting subinterfaces is not in the collection but I have been able to delete other similar elements by switching the GET with DELETE for a request while keeping the URL the same and removing the body of the request.


For deleting the '1' subinterface under 'GigabitEthernet0/9/0', my command composition is as follows:

Action: Delete


But I get the following error:

 "error-message": "Error while deleting data",

        "error-info": "java.util.concurrent.ExecutionException: TransactionCommitFailedException{message=Failed to validate DataTreeModification, errorList=[RpcError [message=Failed to validate DataTreeModification, severity=ERROR, errorType=APPLICATION, tag=operation-failed, applicationTag=null, info=null, cause=io.fd.honeycomb.v3po.translate.write.registry.WriterRegistry$BulkUpdateException: Bulk update failed at: [KeyedInstanceIdentifier{targetType=interface org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.vpp.vlan.rev150527.interfaces._interface.sub.interfaces.SubInterface, path=[org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.Interfaces, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface[key=InterfaceKey [_name=GigabitEthernet0/9/0]], org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.vpp.vlan.rev150527.SubinterfaceAugmentation, org.opendaylight.yang .........


I, however, am able to delete the "tags "subelement under the sub-interface "1" using the URL:


Any pointers on how to delete the subinterface object ?






Join { to automatically receive all group messages.