diff options
author | Benoît Ganne <bganne@cisco.com> | 2019-04-18 15:46:23 +0200 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2019-04-18 22:08:13 +0000 |
commit | d7f92ddf4f96f28bfafeac376bf90497d41b5901 (patch) | |
tree | 0c0581bd2710c42bbdea37ee3a92a47945eca8ab | |
parent | c67078e007c8a9b91def387ba345efa805e45fc5 (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>
-rw-r--r-- | src/plugins/gbp/gbp_bridge_domain.c | 5 | ||||
-rw-r--r-- | src/plugins/gbp/gbp_endpoint_group.c | 8 | ||||
-rw-r--r-- | src/plugins/gbp/gbp_route_domain.c | 4 |
3 files changed, 7 insertions, 10 deletions
diff --git a/src/plugins/gbp/gbp_bridge_domain.c b/src/plugins/gbp/gbp_bridge_domain.c index 8896669002c..73daa9d6d80 100644 --- a/src/plugins/gbp/gbp_bridge_domain.c +++ b/src/plugins/gbp/gbp_bridge_domain.c @@ -389,14 +389,13 @@ gbp_bridge_domain_cli (vlib_main_t * vm, * Configure a GBP bridge-domain * * @cliexpar - * @cliexstart{set gbp bridge-domain [del] bd <ID> bvi <interface> uu-flood <interface>} + * @cliexstart{gbp bridge-domain [del] bd <ID> bvi <interface> [uu-fwd <interface>] [bm-flood <interface>] [flags <flags>]} * @cliexend ?*/ /* *INDENT-OFF* */ VLIB_CLI_COMMAND (gbp_bridge_domain_cli_node, static) = { .path = "gbp bridge-domain", - .short_help = "gbp bridge-domain [del] bd <ID> bvi <interface>" - " uu-flood <interface> [flags <flags>]", + .short_help = "gbp bridge-domain [del] bd <ID> bvi <interface> [uu-fwd <interface>] [bm-flood <interface>] [flags <flags>]", .function = gbp_bridge_domain_cli, }; 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, diff --git a/src/plugins/gbp/gbp_route_domain.c b/src/plugins/gbp/gbp_route_domain.c index 67b6915b463..7502a253440 100644 --- a/src/plugins/gbp/gbp_route_domain.c +++ b/src/plugins/gbp/gbp_route_domain.c @@ -345,13 +345,13 @@ gbp_route_domain_cli (vlib_main_t * vm, * Configure a GBP route-domain * * @cliexpar - * @cliexstart{set gbp route-domain [del] bd <ID> bvi <interface> uu-flood <interface>} + * @cliexstart{gbp route-domain [del] rd <ID> ip4-table-id <ID> ip6-table-id <ID> [ip4-uu <interface>] [ip6-uu <interface>]} * @cliexend ?*/ /* *INDENT-OFF* */ VLIB_CLI_COMMAND (gbp_route_domain_cli_node, static) = { .path = "gbp route-domain", - .short_help = "gbp route-domain [del] epg bd <ID> bvi <interface> uu-flood <interface>", + .short_help = "gbp route-domain [del] rd <ID> ip4-table-id <ID> ip6-table-id <ID> [ip4-uu <interface>] [ip6-uu <interface>]", .function = gbp_route_domain_cli, }; |