From b5f1e342acc5bde48ac4ded755282140d244d862 Mon Sep 17 00:00:00 2001 From: Yaroslav Fedoriachenko Date: Tue, 21 Sep 2021 19:14:00 +0300 Subject: [PATCH] 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 --- src/client/conf-lldp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); -- 2.39.5