aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/gbp/gbp_bridge_domain.c
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2019-03-11 06:11:39 -0700
committerNeale Ranns <nranns@cisco.com>2019-03-12 16:34:45 +0000
commit7bd343509fa30f9713b6efa9a4acb83e0ab86cfb (patch)
tree326722058de86a0b54ea69b35a3be460b5674955 /src/plugins/gbp/gbp_bridge_domain.c
parentf726f539185609cb4f3aee7f34906e8b538cd33e (diff)
GBP: custom-dump functions
Change-Id: I719882acb59bd069fd88b10989f11085a0c41ae6 Signed-off-by: Neale Ranns <nranns@cisco.com> Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Diffstat (limited to 'src/plugins/gbp/gbp_bridge_domain.c')
-rw-r--r--src/plugins/gbp/gbp_bridge_domain.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/plugins/gbp/gbp_bridge_domain.c b/src/plugins/gbp/gbp_bridge_domain.c
index 02ed97d7452..17ccc345b66 100644
--- a/src/plugins/gbp/gbp_bridge_domain.c
+++ b/src/plugins/gbp/gbp_bridge_domain.c
@@ -319,12 +319,15 @@ gbp_bridge_domain_cli (vlib_main_t * vm,
unformat_input_t * input, vlib_cli_command_t * cmd)
{
vnet_main_t *vnm = vnet_get_main ();
+ gbp_bridge_domain_flags_t flags;
u32 bm_flood_sw_if_index = ~0;
u32 uu_fwd_sw_if_index = ~0;
u32 bvi_sw_if_index = ~0;
u32 bd_id = ~0;
u8 add = 1;
+ flags = GBP_BD_FLAG_NONE;
+
while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT)
{
if (unformat (input, "bvi %U", unformat_vnet_sw_interface,
@@ -340,6 +343,8 @@ gbp_bridge_domain_cli (vlib_main_t * vm,
add = 1;
else if (unformat (input, "del"))
add = 0;
+ else if (unformat (input, "flags &d", &flags))
+ add = 0;
else if (unformat (input, "bd %d", &bd_id))
;
else
@@ -347,14 +352,14 @@ gbp_bridge_domain_cli (vlib_main_t * vm,
}
if (~0 == bd_id)
- return clib_error_return (0, "EPG-ID must be specified");
+ return clib_error_return (0, "BD-ID must be specified");
if (add)
{
if (~0 == bvi_sw_if_index)
return clib_error_return (0, "interface must be specified");
- gbp_bridge_domain_add_and_lock (bd_id, GBP_BD_FLAG_NONE,
+ gbp_bridge_domain_add_and_lock (bd_id, flags,
bvi_sw_if_index,
uu_fwd_sw_if_index,
bm_flood_sw_if_index);
@@ -375,7 +380,7 @@ gbp_bridge_domain_cli (vlib_main_t * vm,
/* *INDENT-OFF* */
VLIB_CLI_COMMAND (gbp_bridge_domain_cli_node, static) = {
.path = "gbp bridge-domain",
- .short_help = "gbp bridge-domain [del] epg bd <ID> bvi <interface> uu-flood <interface>",
+ .short_help = "gbp bridge-domain [del] bd <ID> bvi <interface> uu-flood <interface>",
.function = gbp_bridge_domain_cli,
};