From 8c77c1930abd36150edadcf523eceef7810e6487 Mon Sep 17 00:00:00 2001 From: Mohsin Kazmi Date: Fri, 19 Apr 2024 11:02:28 +0000 Subject: ip: add support for drop route through vpp CLI Type: improvement Change-Id: Ib822f36ff7b3ecda162fc99bf3892f912d0649f0 Signed-off-by: Mohsin Kazmi --- src/vnet/fib/fib_types.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/vnet/fib') diff --git a/src/vnet/fib/fib_types.c b/src/vnet/fib/fib_types.c index c4472c7122d..9abb89bc6a0 100644 --- a/src/vnet/fib/fib_types.c +++ b/src/vnet/fib/fib_types.c @@ -715,6 +715,10 @@ unformat_fib_route_path (unformat_input_t * input, va_list * args) rpath->frp_proto = DPO_PROTO_IP6; rpath->frp_flags = FIB_ROUTE_PATH_INTF_RX; } + else if (unformat (input, "drop")) + { + rpath->frp_flags = FIB_ROUTE_PATH_DROP; + } else if (unformat (input, "local")) { clib_memset (&rpath->frp_addr, 0, sizeof (rpath->frp_addr)); -- cgit 1.2.3-korg