summaryrefslogtreecommitdiffstats
path: root/src/plugins/gbp/gbp_endpoint_group.c
diff options
context:
space:
mode:
authorBenoît Ganne <bganne@cisco.com>2019-04-18 15:46:23 +0200
committerNeale Ranns <nranns@cisco.com>2019-04-18 22:08:13 +0000
commitd7f92ddf4f96f28bfafeac376bf90497d41b5901 (patch)
tree0c0581bd2710c42bbdea37ee3a92a47945eca8ab /src/plugins/gbp/gbp_endpoint_group.c
parentc67078e007c8a9b91def387ba345efa805e45fc5 (diff)
GBP: update cli to reflect API changes
Some GBP debug cli short help and commands were not in sync anymore with GBP API. Change-Id: I224bec51fbacd8a3685b70d4e7a52b5803fd3ad4 Signed-off-by: Benoît Ganne <bganne@cisco.com>
Diffstat (limited to 'src/plugins/gbp/gbp_endpoint_group.c')
-rw-r--r--src/plugins/gbp/gbp_endpoint_group.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/plugins/gbp/gbp_endpoint_group.c b/src/plugins/gbp/gbp_endpoint_group.c
index d6e42e81ac5..85afee2da72 100644
--- a/src/plugins/gbp/gbp_endpoint_group.c
+++ b/src/plugins/gbp/gbp_endpoint_group.c
@@ -293,8 +293,6 @@ gbp_endpoint_group_cli (vlib_main_t * vm,
if (add)
{
- if (~0 == uplink_sw_if_index)
- return clib_error_return (0, "interface must be specified");
if (~0 == bd_id)
return clib_error_return (0, "Bridge-domain must be specified");
if (~0 == rd_id)
@@ -313,13 +311,13 @@ gbp_endpoint_group_cli (vlib_main_t * vm,
* Configure a GBP Endpoint Group
*
* @cliexpar
- * @cliexstart{set gbp endpoint-group [del] epg <ID> bd <ID> <interface>}
+ * @cliexstart{gbp endpoint-group [del] epg <ID> bd <ID> rd <ID> [sclass <ID>] [<interface>]}
* @cliexend
?*/
/* *INDENT-OFF* */
VLIB_CLI_COMMAND (gbp_endpoint_group_cli_node, static) = {
.path = "gbp endpoint-group",
- .short_help = "gbp endpoint-group [del] epg <ID> bd <ID> rd <ID> <interface>",
+ .short_help = "gbp endpoint-group [del] epg <ID> bd <ID> rd <ID> [sclass <ID>] [<interface>]",
.function = gbp_endpoint_group_cli,
};
@@ -340,7 +338,7 @@ format_gbp_endpoint_group (u8 * s, va_list * args)
vnet_main_t *vnm = vnet_get_main ();
if (NULL != gg)
- s = format (s, "[%d] %d, sclass:%d bd:[%d,%d] rd:[%d] uplink:%U retnetion:%U locks:%d",
+ s = format (s, "[%d] %d, sclass:%d bd:[%d,%d] rd:[%d] uplink:%U retention:%U locks:%d",
gg - gbp_endpoint_group_pool,
gg->gg_vnid,
gg->gg_sclass,