summaryrefslogtreecommitdiff
path: root/pbrd/pbr_vty.c
diff options
context:
space:
mode:
authorChristian Hopps <chopps@labn.net>2021-08-26 11:57:33 -0400
committerGitHub <noreply@github.com>2021-08-26 11:57:33 -0400
commitd448e2c5f96b3430fd643f52b9264ca87a45c291 (patch)
treed38574fb0ce8c936a003287d107eebf6eb718a8c /pbrd/pbr_vty.c
parenta594fc56829eecf60bedcb763b8d5962432b4c32 (diff)
parent07679ad98ab97a4b783f7ae54f88d4d70a5729de (diff)
Merge pull request #9331 from idryzhov/explicit-exit
*: explicitly print "exit" at the end of every node config
Diffstat (limited to 'pbrd/pbr_vty.c')
-rw-r--r--pbrd/pbr_vty.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pbrd/pbr_vty.c b/pbrd/pbr_vty.c
index 2936d1e346..6c007acb5c 100644
--- a/pbrd/pbr_vty.c
+++ b/pbrd/pbr_vty.c
@@ -1118,7 +1118,7 @@ static int pbr_interface_config_write(struct vty *vty)
pbr_map_write_interfaces(vty, ifp);
- vty_endframe(vty, "!\n");
+ vty_endframe(vty, "exit\n!\n");
}
}
@@ -1184,6 +1184,7 @@ static int pbr_vty_map_config_write_sequence(struct vty *vty,
pbrms_nexthop_group_write_individual_nexthop(vty, pbrms);
}
+ vty_out(vty, "exit\n");
vty_out(vty, "!\n");
return 1;
}