Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix CLI path parsing for via interface only
[vpp.git]
/
src
/
vnet
/
fib
/
fib_types.c
diff --git
a/src/vnet/fib/fib_types.c
b/src/vnet/fib/fib_types.c
index
5c70d6c
..
48f2bd1
100644
(file)
--- a/
src/vnet/fib/fib_types.c
+++ b/
src/vnet/fib/fib_types.c
@@
-417,12
+417,6
@@
unformat_fib_route_path (unformat_input_t * input, va_list * args)
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;
@@
-483,6
+477,12
@@
unformat_fib_route_path (unformat_input_t * input, va_list * args)
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;
+ }
else
{
return (0);
else
{
return (0);