summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--zebra/zserv.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/zebra/zserv.c b/zebra/zserv.c
index 0207a3722f..daecaf5e10 100644
--- a/zebra/zserv.c
+++ b/zebra/zserv.c
@@ -2670,11 +2670,11 @@ config_write_forwarding (struct vty *vty)
/* FIXME: Find better place for that. */
router_id_write (vty);
- if (ipforward ())
- vty_out (vty, "ip forwarding%s", VTY_NEWLINE);
+ if (!ipforward ())
+ vty_out (vty, "no ip forwarding%s", VTY_NEWLINE);
#ifdef HAVE_IPV6
- if (ipforward_ipv6 ())
- vty_out (vty, "ipv6 forwarding%s", VTY_NEWLINE);
+ if (!ipforward_ipv6 ())
+ vty_out (vty, "no ipv6 forwarding%s", VTY_NEWLINE);
#endif /* HAVE_IPV6 */
vty_out (vty, "!%s", VTY_NEWLINE);
return 0;