]> git.proxmox.com Git - mirror_frr.git/blobdiff - zebra/zserv.c
vtysh: return non-zero for configuration failures
[mirror_frr.git] / zebra / zserv.c
index 3da94459f7711cc4b376841de0000aef8f433735..17ec7dd8846327c8cb7e6475b17e044d7c1d7b75 100644 (file)
@@ -2812,7 +2812,7 @@ DEFUN (ip_forwarding,
   if (ret == 0)
     {
       vty_outln (vty, "Can't turn on IP forwarding");
-      return CMD_WARNING;
+      return CMD_WARNING_CONFIG_FAILED;
     }
 
   return CMD_SUCCESS;
@@ -2834,7 +2834,7 @@ DEFUN (no_ip_forwarding,
   if (ret != 0)
     {
       vty_outln (vty, "Can't turn off IP forwarding");
-      return CMD_WARNING;
+      return CMD_WARNING_CONFIG_FAILED;
     }
 
   return CMD_SUCCESS;
@@ -2985,7 +2985,7 @@ DEFUN (ipv6_forwarding,
   if (ret == 0)
     {
       vty_outln (vty, "Can't turn on IPv6 forwarding");
-      return CMD_WARNING;
+      return CMD_WARNING_CONFIG_FAILED;
     }
 
   return CMD_SUCCESS;
@@ -3007,7 +3007,7 @@ DEFUN (no_ipv6_forwarding,
   if (ret != 0)
     {
       vty_outln (vty, "Can't turn off IPv6 forwarding");
-      return CMD_WARNING;
+      return CMD_WARNING_CONFIG_FAILED;
     }
 
   return CMD_SUCCESS;