diff options
Diffstat (limited to 'zebra/interface.c')
| -rw-r--r-- | zebra/interface.c | 80 |
1 files changed, 40 insertions, 40 deletions
diff --git a/zebra/interface.c b/zebra/interface.c index b8426c6890..e3e2e2c675 100644 --- a/zebra/interface.c +++ b/zebra/interface.c @@ -1481,7 +1481,7 @@ DEFUN (multicast, if (ret < 0) { vty_outln (vty, "Can't set multicast flag"); - return CMD_WARNING; + return CMD_WARNING_CONFIG_FAILED; } if_refresh (ifp); } @@ -1507,7 +1507,7 @@ DEFUN (no_multicast, if (ret < 0) { vty_outln (vty, "Can't unset multicast flag"); - return CMD_WARNING; + return CMD_WARNING_CONFIG_FAILED; } if_refresh (ifp); } @@ -1573,7 +1573,7 @@ DEFUN (shutdown_if, if (ret < 0) { vty_outln (vty, "Can't shutdown interface"); - return CMD_WARNING; + return CMD_WARNING_CONFIG_FAILED; } if_refresh (ifp); } @@ -1599,7 +1599,7 @@ DEFUN (no_shutdown_if, if (ret < 0) { vty_outln (vty, "Can't up interface"); - return CMD_WARNING; + return CMD_WARNING_CONFIG_FAILED; } if_refresh (ifp); @@ -1631,7 +1631,7 @@ DEFUN (bandwidth_if, if (bandwidth < 1 || bandwidth > 100000) { vty_outln (vty, "Bandwidth is invalid"); - return CMD_WARNING; + return CMD_WARNING_CONFIG_FAILED; } ifp->bandwidth = bandwidth; @@ -1755,7 +1755,7 @@ DEFUN (link_params_enable, if (IS_ZEBRA_DEBUG_EVENT) zlog_debug ("Link-params: failed to init TE link parameters %s", ifp->name); - return CMD_WARNING; + return CMD_WARNING_CONFIG_FAILED; } /* force protocols to update LINK STATE due to parameters change */ @@ -1833,7 +1833,7 @@ DEFUN (link_params_maxbw, if (sscanf (argv[idx_bandwidth]->arg, "%g", &bw) != 1) { vty_outln (vty, "link_params_maxbw: fscanf: %s",safe_strerror(errno)); - return CMD_WARNING; + return CMD_WARNING_CONFIG_FAILED; } /* Check that Maximum bandwidth is not lower than other bandwidth parameters */ @@ -1852,7 +1852,7 @@ DEFUN (link_params_maxbw, { vty_outln (vty, "Maximum Bandwidth could not be lower than others bandwidth"); - return CMD_WARNING; + return CMD_WARNING_CONFIG_FAILED; } /* Update Maximum Bandwidth if needed */ @@ -1876,7 +1876,7 @@ DEFUN (link_params_max_rsv_bw, { vty_outln (vty, "link_params_max_rsv_bw: fscanf: %s", safe_strerror(errno)); - return CMD_WARNING; + return CMD_WARNING_CONFIG_FAILED; } /* Check that bandwidth is not greater than maximum bandwidth parameter */ @@ -1885,7 +1885,7 @@ DEFUN (link_params_max_rsv_bw, vty_outln (vty, "Maximum Reservable Bandwidth could not be greater than Maximum Bandwidth (%g)", iflp->max_bw); - return CMD_WARNING; + return CMD_WARNING_CONFIG_FAILED; } /* Update Maximum Reservable Bandwidth if needed */ @@ -1913,14 +1913,14 @@ DEFUN (link_params_unrsv_bw, { vty_outln (vty, "link_params_unrsv_bw: fscanf: %s", safe_strerror(errno)); - return CMD_WARNING; + return CMD_WARNING_CONFIG_FAILED; } if (sscanf (argv[idx_bandwidth]->arg, "%g", &bw) != 1) { vty_outln (vty, "link_params_unrsv_bw: fscanf: %s", safe_strerror(errno)); - return CMD_WARNING; + return CMD_WARNING_CONFIG_FAILED; } /* Check that bandwidth is not greater than maximum bandwidth parameter */ @@ -1929,7 +1929,7 @@ DEFUN (link_params_unrsv_bw, vty_outln (vty, "UnReserved Bandwidth could not be greater than Maximum Bandwidth (%g)", iflp->max_bw); - return CMD_WARNING; + return CMD_WARNING_CONFIG_FAILED; } /* Update Unreserved Bandwidth if needed */ @@ -1953,7 +1953,7 @@ DEFUN (link_params_admin_grp, { vty_outln (vty, "link_params_admin_grp: fscanf: %s", safe_strerror(errno)); - return CMD_WARNING; + return CMD_WARNING_CONFIG_FAILED; } /* Update Administrative Group if needed */ @@ -1996,7 +1996,7 @@ DEFUN (link_params_inter_as, if (!inet_aton (argv[idx_ipv4]->arg, &addr)) { vty_outln (vty, "Please specify Router-Addr by A.B.C.D"); - return CMD_WARNING; + return CMD_WARNING_CONFIG_FAILED; } as = strtoul(argv[idx_number]->arg, NULL, 10); @@ -2071,7 +2071,7 @@ DEFUN (link_params_delay, { vty_outln (vty, "Average delay should be comprise between Min (%d) and Max (%d) delay", iflp->min_delay, iflp->max_delay); - return CMD_WARNING; + return CMD_WARNING_CONFIG_FAILED; } /* Update delay if value is not set or change */ if (IS_PARAM_UNSET(iflp, LP_DELAY)|| iflp->av_delay != delay) @@ -2096,7 +2096,7 @@ DEFUN (link_params_delay, { vty_outln (vty, "Average delay should be comprise between Min (%d) and Max (%d) delay", low, high); - return CMD_WARNING; + return CMD_WARNING_CONFIG_FAILED; } /* Update Delays if needed */ if (IS_PARAM_UNSET(iflp, LP_DELAY) @@ -2192,7 +2192,7 @@ DEFUN (link_params_pkt_loss, { vty_outln (vty, "link_params_pkt_loss: fscanf: %s", safe_strerror(errno)); - return CMD_WARNING; + return CMD_WARNING_CONFIG_FAILED; } if (fval > MAX_PKT_LOSS) @@ -2232,7 +2232,7 @@ DEFUN (link_params_res_bw, if (sscanf (argv[idx_bandwidth]->arg, "%g", &bw) != 1) { vty_outln (vty, "link_params_res_bw: fscanf: %s",safe_strerror(errno)); - return CMD_WARNING; + return CMD_WARNING_CONFIG_FAILED; } /* Check that bandwidth is not greater than maximum bandwidth parameter */ @@ -2241,7 +2241,7 @@ DEFUN (link_params_res_bw, vty_outln (vty, "Residual Bandwidth could not be greater than Maximum Bandwidth (%g)", iflp->max_bw); - return CMD_WARNING; + return CMD_WARNING_CONFIG_FAILED; } /* Update Residual Bandwidth if needed */ @@ -2278,7 +2278,7 @@ DEFUN (link_params_ava_bw, if (sscanf (argv[idx_bandwidth]->arg, "%g", &bw) != 1) { vty_outln (vty, "link_params_ava_bw: fscanf: %s",safe_strerror(errno)); - return CMD_WARNING; + return CMD_WARNING_CONFIG_FAILED; } /* Check that bandwidth is not greater than maximum bandwidth parameter */ @@ -2287,7 +2287,7 @@ DEFUN (link_params_ava_bw, vty_outln (vty, "Available Bandwidth could not be greater than Maximum Bandwidth (%g)", iflp->max_bw); - return CMD_WARNING; + return CMD_WARNING_CONFIG_FAILED; } /* Update Residual Bandwidth if needed */ @@ -2324,7 +2324,7 @@ DEFUN (link_params_use_bw, if (sscanf (argv[idx_bandwidth]->arg, "%g", &bw) != 1) { vty_outln (vty, "link_params_use_bw: fscanf: %s",safe_strerror(errno)); - return CMD_WARNING; + return CMD_WARNING_CONFIG_FAILED; } /* Check that bandwidth is not greater than maximum bandwidth parameter */ @@ -2333,7 +2333,7 @@ DEFUN (link_params_use_bw, vty_outln (vty, "Utilised Bandwidth could not be greater than Maximum Bandwidth (%g)", iflp->max_bw); - return CMD_WARNING; + return CMD_WARNING_CONFIG_FAILED; } /* Update Utilized Bandwidth if needed */ @@ -2373,13 +2373,13 @@ ip_address_install (struct vty *vty, struct interface *ifp, if (ret <= 0) { vty_outln (vty, "%% Malformed address "); - return CMD_WARNING; + return CMD_WARNING_CONFIG_FAILED; } if (ipv4_martian(&cp.prefix)) { vty_outln (vty, "%% Invalid address"); - return CMD_WARNING; + return CMD_WARNING_CONFIG_FAILED; } ifc = connected_check (ifp, (struct prefix *) &cp); @@ -2431,7 +2431,7 @@ ip_address_install (struct vty *vty, struct interface *ifp, { vty_outln (vty, "%% Can't set interface IP address: %s.", safe_strerror(errno)); - return CMD_WARNING; + return CMD_WARNING_CONFIG_FAILED; } SET_FLAG (ifc->conf, ZEBRA_IFC_QUEUED); @@ -2457,7 +2457,7 @@ ip_address_uninstall (struct vty *vty, struct interface *ifp, if (ret <= 0) { vty_outln (vty, "%% Malformed address "); - return CMD_WARNING; + return CMD_WARNING_CONFIG_FAILED; } /* Check current interface address. */ @@ -2465,12 +2465,12 @@ ip_address_uninstall (struct vty *vty, struct interface *ifp, if (! ifc) { vty_outln (vty, "%% Can't find address"); - return CMD_WARNING; + return CMD_WARNING_CONFIG_FAILED; } /* This is not configured address. */ if (! CHECK_FLAG (ifc->conf, ZEBRA_IFC_CONFIGURED)) - return CMD_WARNING; + return CMD_WARNING_CONFIG_FAILED; UNSET_FLAG (ifc->conf, ZEBRA_IFC_CONFIGURED); @@ -2480,7 +2480,7 @@ ip_address_uninstall (struct vty *vty, struct interface *ifp, { listnode_delete (ifp->connected, ifc); connected_free (ifc); - return CMD_WARNING; + return CMD_WARNING_CONFIG_FAILED; } /* This is real route. */ @@ -2489,7 +2489,7 @@ ip_address_uninstall (struct vty *vty, struct interface *ifp, { vty_outln (vty, "%% Can't unset interface IP address: %s.", safe_strerror(errno)); - return CMD_WARNING; + return CMD_WARNING_CONFIG_FAILED; } UNSET_FLAG (ifc->conf, ZEBRA_IFC_QUEUED); /* we will receive a kernel notification about this route being removed. @@ -2573,13 +2573,13 @@ ipv6_address_install (struct vty *vty, struct interface *ifp, if (ret <= 0) { vty_outln (vty, "%% Malformed address "); - return CMD_WARNING; + return CMD_WARNING_CONFIG_FAILED; } if (ipv6_martian(&cp.prefix)) { vty_outln (vty, "%% Invalid address"); - return CMD_WARNING; + return CMD_WARNING_CONFIG_FAILED; } ifc = connected_check (ifp, (struct prefix *) &cp); @@ -2627,7 +2627,7 @@ ipv6_address_install (struct vty *vty, struct interface *ifp, { vty_outln (vty, "%% Can't set interface IP address: %s.", safe_strerror(errno)); - return CMD_WARNING; + return CMD_WARNING_CONFIG_FAILED; } SET_FLAG (ifc->conf, ZEBRA_IFC_QUEUED); @@ -2666,7 +2666,7 @@ ipv6_address_uninstall (struct vty *vty, struct interface *ifp, if (ret <= 0) { vty_outln (vty, "%% Malformed address "); - return CMD_WARNING; + return CMD_WARNING_CONFIG_FAILED; } /* Check current interface address. */ @@ -2674,12 +2674,12 @@ ipv6_address_uninstall (struct vty *vty, struct interface *ifp, if (! ifc) { vty_outln (vty, "%% Can't find address"); - return CMD_WARNING; + return CMD_WARNING_CONFIG_FAILED; } /* This is not configured address. */ if (! CHECK_FLAG (ifc->conf, ZEBRA_IFC_CONFIGURED)) - return CMD_WARNING; + return CMD_WARNING_CONFIG_FAILED; UNSET_FLAG (ifc->conf, ZEBRA_IFC_CONFIGURED); @@ -2689,7 +2689,7 @@ ipv6_address_uninstall (struct vty *vty, struct interface *ifp, { listnode_delete (ifp->connected, ifc); connected_free (ifc); - return CMD_WARNING; + return CMD_WARNING_CONFIG_FAILED; } /* This is real route. */ @@ -2698,7 +2698,7 @@ ipv6_address_uninstall (struct vty *vty, struct interface *ifp, { vty_outln (vty, "%% Can't unset interface IP address: %s.", safe_strerror(errno)); - return CMD_WARNING; + return CMD_WARNING_CONFIG_FAILED; } UNSET_FLAG (ifc->conf, ZEBRA_IFC_QUEUED); |
