Hi Team,

I am trying to add a static route in VPP using high-level API in my C 
application.
Equivalent VPP CLI command is :  " ip route add 10.10.10.1/24 via 1.1.1.2 
TenGigabitEthernet3/0/1 "

Attached my C application. I tried to call vapi_ip_route_add_del routine and to 
use vapi_send and vapi_recv. The functions are not returning any errors. But 
route is not programmed in VPP. Am I missing anything in assigning required 
parameters before invoking vapi functions? Or do we need to call any other VAPI 
routines too in addition to what I have used?

Referred links:
https://lists.fd.io/g/vpp-dev/topic/78025037?p=,,,20,0,0,0::Created,,%23vapi,20,2,0,78025037,ct=1&ct=1
https://fd.io/docs/vpp/master/gettingstarted/developers/vpp_api_module.html

https://fd.io/docs/vpp/master/gettingstarted/developers/fib20/routes.html

Please help me resolve the issue.
It would be of great help!!
Thanks in advance.

Thanks,
Athilakshmi S

Attachment: vapi_route_add.c
Description: Binary data

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#18404): https://lists.fd.io/g/vpp-dev/message/18404
Mute This Topic: https://lists.fd.io/mt/79127557/21656
Mute #vpp:https://lists.fd.io/g/vpp-dev/mutehashtag/vpp
Mute #vapi:https://lists.fd.io/g/vpp-dev/mutehashtag/vapi
Mute #vpp-dev:https://lists.fd.io/g/vpp-dev/mutehashtag/vpp-dev
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to