summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/vnet/l2/l2_bd.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/vnet/l2/l2_bd.c b/src/vnet/l2/l2_bd.c
index a222fec9b81..9d7a43d3623 100644
--- a/src/vnet/l2/l2_bd.c
+++ b/src/vnet/l2/l2_bd.c
@@ -1138,7 +1138,7 @@ bd_add_del (l2_bridge_domain_add_del_args_t * a)
/**
Create or delete bridge-domain.
- The CLI format is:
+ The CLI format:
create bridge-domain <bd_index> [learn <0|1>] [forward <0|1>] [uu-flood <0|1>]
[flood <0|1>] [arp-term <0|1>] [mac-age <nn>] [del]
*/
@@ -1151,7 +1151,7 @@ bd_add_del_command_fn (vlib_main_t * vm, unformat_input_t * input,
clib_error_t *error = 0;
u8 is_add = 1;
u32 bd_id = ~0;
- u32 flood = 1, forward = 1, learn = 1, uu_flood = 0, arp_term = 0;
+ u32 flood = 1, forward = 1, learn = 1, uu_flood = 1, arp_term = 0;
u32 mac_age = 0;
l2_bridge_domain_add_del_args_t _a, *a = &_a;
int rv;
@@ -1170,6 +1170,8 @@ bd_add_del_command_fn (vlib_main_t * vm, unformat_input_t * input,
;
else if (unformat (line_input, "forward %d", &forward))
;
+ else if (unformat (line_input, "learn %d", &learn))
+ ;
else if (unformat (line_input, "arp-term %d", &arp_term))
;
else if (unformat (line_input, "mac-age %d", &mac_age))