aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2018-07-03 09:41:47 -0400
committerMarco Varlese <marco.varlese@suse.de>2018-07-04 08:42:54 +0000
commit680f2792128d0535060a3d2641fc5f8b4b9105f7 (patch)
tree220fdce7b9ef6b33d12ff277759555f2e5d3a8df /src
parent7752b39af3b4d99e6ff649ec7c294ad56665b1f9 (diff)
add 'src-lookup' keyword for FIB paths
Change-Id: I4554d1e94bd70ef5b3b0aaeb1a0fceaeb81c5f96 Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src')
-rw-r--r--src/vnet/fib/fib_types.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vnet/fib/fib_types.c b/src/vnet/fib/fib_types.c
index 035f70036eb..1046e45b2f7 100644
--- a/src/vnet/fib/fib_types.c
+++ b/src/vnet/fib/fib_types.c
@@ -495,6 +495,10 @@ unformat_fib_route_path (unformat_input_t * input, va_list * args)
rpath->frp_proto = DPO_PROTO_MPLS;
*payload_proto = DPO_PROTO_MPLS;
}
+ else if (unformat (input, "src-lookup"))
+ {
+ rpath->frp_flags |= FIB_ROUTE_PATH_SOURCE_LOOKUP;
+ }
else if (unformat (input,
"l2-input-on %U",
unformat_vnet_sw_interface, vnm,