]> git.proxmox.com Git - mirror_frr.git/blobdiff - babeld/babel_interface.c
vtysh: return non-zero for configuration failures
[mirror_frr.git] / babeld / babel_interface.c
index fe8fde92e6b4b569cef425b9c5bff590a32e98d9..d14c4d8471492c4df3bf3ce878c4a9d93b6660fe 100644 (file)
@@ -292,7 +292,7 @@ DEFUN (babel_network,
     if (ret < 0) {
         vty_outln (vty, "There is same network configuration %s",
                    argv[1]->arg);
-        return CMD_WARNING;
+        return CMD_WARNING_CONFIG_FAILED;
     }
 
     return CMD_SUCCESS;
@@ -319,7 +319,7 @@ DEFUN (no_babel_network,
 
     if (ret < 0) {
         vty_outln (vty, "can't find network %s",argv[2]->arg);
-        return CMD_WARNING;
+        return CMD_WARNING_CONFIG_FAILED;
     }
 
     return CMD_SUCCESS;