From 5d85f2dea9cc77753c68947b6b2ae56101fab9a6 Mon Sep 17 00:00:00 2001 From: Neale Ranns Date: Tue, 2 May 2017 10:17:17 -0700 Subject: Allow local/for-us replications for IP multicast routes on the CLI Change-Id: I046d9402b79fdbc6a6663199ffff8e40a278fd51 Signed-off-by: Neale Ranns --- src/vnet/ip/lookup.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/vnet/ip/lookup.c') diff --git a/src/vnet/ip/lookup.c b/src/vnet/ip/lookup.c index 2321c072620..b9b5caa542f 100755 --- a/src/vnet/ip/lookup.c +++ b/src/vnet/ip/lookup.c @@ -840,7 +840,12 @@ vnet_ip_mroute_cmd (vlib_main_t * vm, &rpath.frp_sw_if_index)) { rpath.frp_weight = 1; - rpath.frp_proto = FIB_PROTOCOL_IP4; + } + else if (unformat (line_input, "via local")) + { + rpath.frp_sw_if_index = ~0; + rpath.frp_weight = 1; + rpath.frp_flags |= FIB_ROUTE_PATH_LOCAL; } else if (unformat (line_input, "%U", unformat_mfib_itf_flags, &iflags)) ; -- cgit 1.2.3-korg