aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/bier
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet/bier')
-rw-r--r--src/vnet/bier/bier_update.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/vnet/bier/bier_update.c b/src/vnet/bier/bier_update.c
index 170893d45b6..4d7509dd52e 100644
--- a/src/vnet/bier/bier_update.c
+++ b/src/vnet/bier/bier_update.c
@@ -79,13 +79,14 @@ vnet_bier_route_cmd (vlib_main_t * vm,
fib_route_path_t *brps = NULL, brp = {
.frp_flags = FIB_ROUTE_PATH_BIER_FMASK,
};
+ u32 hdr_len, payload_proto;
bier_table_id_t bti = {
};
- mpls_label_t out_label;
bier_bp_t bp;
- u32 hdr_len;
u32 add = 1;
+ payload_proto = DPO_PROTO_BIER;
+
while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT) {
if (unformat (input, "del")) {
add = 0;
@@ -93,11 +94,9 @@ vnet_bier_route_cmd (vlib_main_t * vm,
} else if (unformat (input, "set %d", &bti.bti_set)) {
} else if (unformat (input, "bsl %d", &hdr_len)) {
} else if (unformat (input, "bp %d", &bp)) {
- } else if (unformat (input, "v4-nh %U",
- unformat_ip46_address,
- &brp.frp_addr, 0)) {
- } else if (unformat (input, "mpls %d", &out_label)) {
- vec_add1(brp.frp_label_stack, out_label);
+ } else if (unformat (input, "via %U",
+ unformat_fib_route_path,
+ &brp, &payload_proto)) {
} else {
error = unformat_parse_error (input);
goto done;
@@ -124,7 +123,7 @@ done:
}
VLIB_CLI_COMMAND (bier_route_command) = {
- .path = "bier route",
+ .path = "bier route via [next-hop-address] [next-hop-interface] [next-hop-table <value>] [weight <value>] [preference <value>] [udp-encap-id <value>] [ip4-lookup-in-table <value>] [ip6-lookup-in-table <value>] [mpls-lookup-in-table <value>] [resolve-via-host] [resolve-via-connected] [rx-ip4 <interface>] [out-labels <value value value>]",
.short_help = "Add/delete BIER Routes",
.function = vnet_bier_route_cmd,
};