Re: Adding a static route
Michal Cmarada <mcmarada@...>
Yes If you are adding routes to the default table (VRF 0) than you need to use learned-protocol-0. This happens because VRF 0 is always present in vpp and when honeycomb resolves routes from this VRF it doesn’t have mapping for that protocol, so it creates artificial one (learned-protocol-[VRFID]) if multiple vrfs are present during honeycomb start it should create multiple protocols one for each VRF.
toggle quoted message
Show quoted text
If you will add fib-tables via honeycomb the first protocol is learned-protocol-0 for VRF 0 (automatically generated when hc is initialized and routes are read from VPP) and the other ones you can name as you like(as in postman collection test-routing-protocol-1) Michal -----Original Message-----
From: hc2vpp@... <hc2vpp@...> On Behalf Of Raj Sent: Wednesday, January 16, 2019 12:43 PM To: hc2vpp@... Subject: Re: [hc2vpp] Adding a static route Thanks a lot, I am able to add route correctly. One additional change I had to make in the postman request was to change the "control-plane-protocol" from "test-routing-protocol-1" to "learned-protocol-0" "control-plane-protocol": [ { "type": "static", "name": "learned-protocol-0", "description":"Test routing protocol", "vpp-protocol-attributes": { "primary-vrf": "0" }, I did that to correct this error: Caused by: java.lang.IllegalStateException: An attempt to assign protocol test-routing-protocol-1 to table id 0. Table id already assigned to protocol learned-protocol-0 Once that is done, I was able to add routing entry and its working fine, but could not figure out what control-plane-protocol is and why its default value is learned-protocol-0 Thanks and Regards, Raj On Wed, Jan 16, 2019 at 3:18 PM Michal Cmarada -X (mcmarada - PANTHEON TECHNOLOGIES at Cisco) <mcmarada@...> wrote:
|
|