summaryrefslogtreecommitdiff
path: root/babeld
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2022-01-24 00:07:20 +0300
committerIgor Ryzhov <iryzhov@nfware.com>2022-01-24 14:44:05 +0300
commit788a036fdb57d733371b180d1d295ce6ca72bf5d (patch)
treeda6694b6b0d78fd1b679ba02a7808f0fe01f964f /babeld
parent9e84443acac051c31e504d8da657c2776332edf5 (diff)
*: do not print vrf name for interface config when using vrf-lite
VRF name should not be printed in the config since 574445ec. The update was done for NB config output but I missed it for regular vty output. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'babeld')
-rw-r--r--babeld/babel_interface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/babeld/babel_interface.c b/babeld/babel_interface.c
index e725fbffe9..98c5d21196 100644
--- a/babeld/babel_interface.c
+++ b/babeld/babel_interface.c
@@ -1308,7 +1308,7 @@ interface_config_write (struct vty *vty)
int write = 0;
FOR_ALL_INTERFACES (vrf, ifp) {
- vty_frame (vty, "interface %s\n",ifp->name);
+ if_vty_config_start(vty, ifp);
if (ifp->desc)
vty_out (vty, " description %s\n",ifp->desc);
babel_interface_nfo *babel_ifp = babel_get_if_nfo (ifp);
@@ -1385,7 +1385,7 @@ interface_config_write (struct vty *vty)
write++;
}
}
- vty_endframe (vty, "exit\n!\n");
+ if_vty_config_end(vty);
write++;
}
return write;