From: Yaroslav Fedoriachenko Date: Tue, 21 Sep 2021 16:14:00 +0000 (+0300) Subject: lldpcli: remove redundant "ports" parameters from cap and mgmt cmds X-Git-Tag: 1.0.13~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b5f1e342acc5bde48ac4ded755282140d244d862;p=thirdparty%2Flldpd.git lldpcli: remove redundant "ports" parameters from cap and mgmt cmds The commands below were introduced as global commands, but all of them except the first one were missing code to ignore "ports" parameter ``` configure lldp capabilities-advertisements unconfigure lldp capabilities-advertisements unconfigure lldp management-addresses-advertisements configure lldp management-addresses-advertisements ``` Signed-off-by: Yaroslav Fedoriachenko --- diff --git a/src/client/conf-lldp.c b/src/client/conf-lldp.c index b2e94826..4e497378 100644 --- a/src/client/conf-lldp.c +++ b/src/client/conf-lldp.c @@ -745,7 +745,7 @@ register_commands_configure_lldp(struct cmd_node *configure, commands_new(unconfigure_lldp, "capabilities-advertisements", "Don't enable chassis capabilities advertisement", - NULL, NULL, NULL), + cmd_check_no_env, NULL, "ports"), NEWLINE, "Don't enable chassis capabilities advertisement", NULL, cmd_chassis_cap_advertise, NULL); @@ -753,14 +753,14 @@ register_commands_configure_lldp(struct cmd_node *configure, commands_new(configure_lldp, "management-addresses-advertisements", "Enable management addresses advertisement", - NULL, NULL, NULL), + cmd_check_no_env, NULL, "ports"), NEWLINE, "Enable management addresses advertisement", NULL, cmd_chassis_mgmt_advertise, "enable"); commands_new( commands_new(unconfigure_lldp, "management-addresses-advertisements", "Don't enable management addresses advertisement", - NULL, NULL, NULL), + cmd_check_no_env, NULL, "ports"), NEWLINE, "Don't enable management addresses advertisement", NULL, cmd_chassis_mgmt_advertise, NULL);