summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
3e964f3)
before:
DBGvpp# ip route add 1.1.1.1/32 via mpls-tunnel0
ip route add 1.1.1.1/32 via mpls-tunnel0
ip route: parse error `via mpls-tunnel0'
DBGvpp# ip route add 1.1.1.1/32 via via mpls-tunnel0
ip route add 1.1.1.1/32 via via mpls-tunnel0
after:
DBGvpp# ip route add 1.1.1.1/32 via via mpls-tunnel1
ip route add 1.1.1.1/32 via via mpls-tunnel1
Change-Id: I2185a82fcf0799d59de9cb16e09b7f297faffab9
Signed-off-by: Neale Ranns <nranns@cisco.com>
rpath->frp_proto = *payload_proto;
rpath->frp_sw_if_index = ~0;
}
rpath->frp_proto = *payload_proto;
rpath->frp_sw_if_index = ~0;
}
- else if (unformat (input, "via %U",
- unformat_vnet_sw_interface, vnm,
- &rpath->frp_sw_if_index))
- {
- rpath->frp_proto = *payload_proto;
- }
else if (unformat (input, "resolve-via-host"))
{
rpath->frp_flags |= FIB_ROUTE_PATH_RESOLVE_VIA_HOST;
else if (unformat (input, "resolve-via-host"))
{
rpath->frp_flags |= FIB_ROUTE_PATH_RESOLVE_VIA_HOST;
vec_add1(rpath->frp_label_stack, out_label);
}
}
vec_add1(rpath->frp_label_stack, out_label);
}
}
+ else if (unformat (input, "%U",
+ unformat_vnet_sw_interface, vnm,
+ &rpath->frp_sw_if_index))
+ {
+ rpath->frp_proto = *payload_proto;
+ }