]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: fix link-params admin-grp config output
authorIgor Ryzhov <iryzhov@nfware.com>
Fri, 19 Jan 2024 00:56:45 +0000 (02:56 +0200)
committerIgor Ryzhov <iryzhov@nfware.com>
Fri, 19 Jan 2024 01:47:13 +0000 (03:47 +0200)
- 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>
zebra/interface.c

index f38e150d73406ee4f6a57c9dc791a74054a7cf2e..cf25fe0139330d6297e01cba5dd14cb829dd96ef 100644 (file)
@@ -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,