Hi All, I have a query regarding Mpls Tunnel delete option.
I have observed we can delete the mpls tunnel created using the CLI by only passing the tunnel index. *CLI (To delete mpls tunnel):* *mpls tunnel del mpls-tunnel0* But in API option I have observed we cannot delete the mpls tunnel by passing tunnel index alone we need to pass rpath details (mandatory) . *API:* *vl_api_mpls_tunnel_add_del_t_handler* *if (!vnet_mpls_tunnel_path_remove (tunnel_sw_if_index, rpaths))* * vnet_mpls_tunnel_del (tunnel_sw_if_index);* I wanted to ask is there any specific reason to pass the rpath details in the API option, can we delete the tunnel directly using the tunnel index similar to CLI. In the CLI API, I have observed it is handled as below, the tunnel is deleted directly using tunnel index if rpath is NULL: *CLI API:* *vnet_create_mpls_tunnel_command_fn * *if (NULL == rpaths){ vnet_mpls_tunnel_del(sw_if_index); }else if (!vnet_mpls_tunnel_path_remove(sw_if_index, rpaths)){ vnet_mpls_tunnel_del(sw_if_index);}* Can we consider a similar handling for API option in "vl_api_mpls_tunnel_add_del_t_handler". Thanks & Regards, Sreejith
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#21470): https://lists.fd.io/g/vpp-dev/message/21470 Mute This Topic: https://lists.fd.io/mt/91355659/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-