Re: Honeycomb REST API - not able to delete sub-interfaces
Marek Gradzki -X (mgradzki - PANTHEON TECHNOLOGIES@Cisco) <mgradzki@...>
Hi,
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".
Regards, Marek
From: honeycomb-dev-bounces@... [mailto:honeycomb-dev-bounces@...]
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
Hi,
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 ?
Thanks, Nilesh
|
|