For the benefit of patchwork 1751, see:

https://lists.quagga.net/pipermail/quagga-dev/2016-May/015474.html
https://lists.quagga.net/pipermail/quagga-dev/2016-January/014463.html

On Tue, 12 Jan 2016, Lou Berger wrote:

The last route-map written to config should have an "exit" at the end to
return to the main node from route-map processing.

Signed-off-by: Lou Berger <lber...@labn.net>
Signed-off-by: David Lamparter <equi...@opensourcerouting.org>
---
lib/routemap.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/lib/routemap.c b/lib/routemap.c
index 7302e23..116c8bd 100644
--- a/lib/routemap.c
+++ b/lib/routemap.c
@@ -1288,6 +1288,8 @@ route_map_config_write (struct vty *vty)

        write++;
      }
+  if (!first)
+    vty_out (vty, " exit%s", VTY_NEWLINE);
  return write;
}



--
Paul Jakma      p...@jakma.org  @pjakma Key ID: 64A2FF6A
Fortune:
The part of the world that people find most puzzling is the part called "Me".

_______________________________________________
Quagga-dev mailing list
Quagga-dev@lists.quagga.net
https://lists.quagga.net/mailman/listinfo/quagga-dev

Reply via email to