From dea806da536b8f1b49af9a852441d5f772f14486 Mon Sep 17 00:00:00 2001 From: Vladislav Grishenko Date: Tue, 20 Feb 2024 11:58:01 +0500 Subject: fib: fix crash while adding intf-rx routes Fix crash while adding intf-rx ip4 and ip6 routes via api due invalid exporting of interface rx routes as attached. Also, add missed route path via rx-ip6 cli support. Type: fix Signed-off-by: Vladislav Grishenko Change-Id: I15711c8c0787398dd7e3baa4787019bb1f317666 --- src/vnet/mpls/mpls.c | 8 +++++++- src/vnet/mpls/mpls_tunnel.c | 7 ++++++- 2 files changed, 13 insertions(+), 2 deletions(-) (limited to 'src/vnet/mpls') diff --git a/src/vnet/mpls/mpls.c b/src/vnet/mpls/mpls.c index 0d01010feea..a04e1cf6985 100644 --- a/src/vnet/mpls/mpls.c +++ b/src/vnet/mpls/mpls.c @@ -370,7 +370,13 @@ done: VLIB_CLI_COMMAND (mpls_local_label_command, static) = { .path = "mpls local-label", .function = vnet_mpls_local_label, - .short_help = "mpls local-label [add|del] [eos|non-eos] via [next-hop-address] [next-hop-interface] [next-hop-table ] [weight ] [preference ] [udp-encap-id ] [ip4-lookup-in-table ] [ip6-lookup-in-table ] [mpls-lookup-in-table ] [resolve-via-host] [resolve-via-attached] [rx-ip4 ] [out-labels ]", + .short_help = + "mpls local-label [add|del] [eos|non-eos] via " + "[next-hop-address] [next-hop-interface] [next-hop-table ] [weight " + "] [preference ] [udp-encap-id ] " + "[ip4-lookup-in-table ] [ip6-lookup-in-table ] " + "[mpls-lookup-in-table ] [resolve-via-host] [resolve-via-attached] " + "[rx-ip4|rx-ip6 ] [out-labels ]", }; clib_error_t * diff --git a/src/vnet/mpls/mpls_tunnel.c b/src/vnet/mpls/mpls_tunnel.c index 5f7bf8c3b25..b03a4a57f68 100644 --- a/src/vnet/mpls/mpls_tunnel.c +++ b/src/vnet/mpls/mpls_tunnel.c @@ -932,7 +932,12 @@ done: VLIB_CLI_COMMAND (create_mpls_tunnel_command, static) = { .path = "mpls tunnel", .short_help = - "mpls tunnel [multicast] [l2-only] via [next-hop-address] [next-hop-interface] [next-hop-table ] [weight ] [preference ] [udp-encap-id ] [ip4-lookup-in-table ] [ip6-lookup-in-table ] [mpls-lookup-in-table ] [resolve-via-host] [resolve-via-connected] [rx-ip4 ] [out-labels ]", + "mpls tunnel [multicast] [l2-only] via [next-hop-address] " + "[next-hop-interface] [next-hop-table ] [weight ] " + "[preference ] [udp-encap-id ] [ip4-lookup-in-table " + "] [ip6-lookup-in-table ] [mpls-lookup-in-table ] " + "[resolve-via-host] [resolve-via-connected] [rx-ip4|rx-ip6 ] " + "[out-labels ]", .function = vnet_create_mpls_tunnel_command_fn, }; -- cgit 1.2.3-korg