aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/l2
diff options
context:
space:
mode:
authorChoonho Son <choonho.son@gmail.com>2017-04-05 19:09:52 +0900
committerJohn Lo <loj@cisco.com>2017-04-06 14:01:48 +0000
commit5ee51f8ed616f14f3b32ae8857d383fefa02d861 (patch)
treec7ad30d1858d52110d9b8638f664b94b60c56241 /src/vnet/l2
parent586afd762bfa149f5ca167bd5fd5a0cd59ce94fe (diff)
VPP-686: create bridge-domain
- update default flags - add missing flag learn Change-Id: I50a1a001848769836468838775b59d3414d27710 Signed-off-by: Choonho Son <choonho.son@gmail.com>
Diffstat (limited to 'src/vnet/l2')
-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))