Re: Removing ACL entries


Michal Cmarada <mcmarada@...>
 

Hi,

Sometimes there is a description in postman calls. As an example you can take a look at SRV6 calls. Several put calls contain a description where you can see vpp equivalent call using CLI. That may help you to see the similarities between cli call and HC rest call.
Example:
Put for End Base variant local sid B::100:
http://localhost:8183/restconf/config/hc2vpp-ietf-routing:routing/hc2vpp-ietf-srv6-base:srv6/locators/locator/b::/static/local-sids/sid/100
{
"hc2vpp-ietf-srv6-static:sid": [
{
"opcode": 100,
"end-behavior-type": "ietf-srv6-types:End",
"end": {}
}
]
}

And vpp cli equivalent in description
vppctl sr localsid address B::64 behavior end (in dec format opcode value is 100)

here you can see how local sid address is constructed from locator (B::) and opcode (100 which in hex equals 64)
Not all VPP parameters are always mapped 1:1 directly to yang model, but usually there is at least some note or description either in examples or in yang model augmentations for VPP in honeycomb.

Michal

-----Original Message-----
From: Raj <rajlistuser@...>
Sent: Friday, January 11, 2019 7:40 AM
To: Michal Cmarada -X (mcmarada - PANTHEON TECHNOLOGIES at Cisco) <mcmarada@...>
Cc: hc2vpp@...
Subject: Re: [hc2vpp] Removing ACL entries

On Thu, Jan 10, 2019 at 4:46 PM Michal Cmarada -X (mcmarada - PANTHEON TECHNOLOGIES at Cisco) <mcmarada@...> wrote:

This behavior is same for all configuration if you add something using
PUT you should be able to delete it using DELETE call
Thanks, it worked.

Just checking if there is some documentation for REST API of hc2vpp, apart from whats available in release notes?

Thanks and Regards,

Raj

Join {hc2vpp@lists.fd.io to automatically receive all group messages.