summaryrefslogtreecommitdiff
path: root/zebra/interface.c
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2024-01-19 02:56:45 +0200
committerIgor Ryzhov <iryzhov@nfware.com>2024-01-19 03:47:13 +0200
commitf62e38cc364df4f41e6eb2f128366b90a3aa714a (patch)
tree94d0319573803d2a4ff8942efdac079a6384c443 /zebra/interface.c
parenta3bbe28e6d0e2f78bef8731002e76339320aacc9 (diff)
zebra: fix link-params admin-grp config output
- it was not printed at all because of the incorrect `yang_dnode_exist` check - the intended output was "admin-group" instead of "admin-grp" used in the actual CLI command Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'zebra/interface.c')
-rw-r--r--zebra/interface.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/zebra/interface.c b/zebra/interface.c
index f38e150d73..cf25fe0139 100644
--- a/zebra/interface.c
+++ b/zebra/interface.c
@@ -4801,11 +4801,8 @@ static int ag_iter_cb(const struct lyd_node *dnode, void *arg)
void cli_show_legacy_admin_group(struct vty *vty, const struct lyd_node *dnode,
bool show_defaults)
{
- if (!yang_dnode_exists(dnode, "legacy-admin-group"))
- return;
-
- vty_out(vty, " admin-group 0x%x\n",
- yang_dnode_get_uint32(dnode, "legacy-admin-group"));
+ vty_out(vty, " admin-grp 0x%x\n",
+ yang_dnode_get_uint32(dnode, NULL));
}
void cli_show_affinity_mode(struct vty *vty, const struct lyd_node *dnode,