Lines Matching +full:no +full:- +full:disconnect
4 * SPDX-License-Identifier: Apache-2.0
77 /* No matches found, it's invalid. */ in flag_name()
89 /* Verify that a provided string consists only of the characters 0-9*/
134 target->iface = net_if_get_by_index(iface_index); in parse_ifi_target()
136 if (target->iface == NULL) { in parse_ifi_target()
142 target->type = CM_TARG_IFACE; in parse_ifi_target()
146 target->type = CM_TARG_INVALID; in parse_ifi_target()
147 return -EINVAL; in parse_ifi_target()
163 target->iface = net_if_get_by_index(net_if_get_by_name(arg)); in parse_if_target()
165 if (target->iface == NULL) { in parse_if_target()
171 target->type = CM_TARG_IFACE; in parse_if_target()
179 target->type = CM_TARG_INVALID; in parse_if_target()
180 return -EINVAL; in parse_if_target()
191 target->type = CM_TARG_NONE; in parse_target()
200 target->type = CM_TARG_ALL; in parse_target()
206 target->type = CM_TARG_NONE; in parse_target()
228 target->type = CM_TARG_INVALID; in parse_target()
230 return -EINVAL; in parse_target()
259 return -EINVAL; in parse_getset()
272 return -EINVAL; in parse_flag()
286 return -EINVAL; in parse_flag()
309 if (strcasecmp(arg, "no") == 0 || in parse_bool()
320 return -EINVAL; in parse_bool()
333 return -EINVAL; in parse_timeout()
348 return -EINVAL; in parse_timeout()
354 return -EINVAL; in parse_timeout()
371 snprintk(buf, len, "%d (%p - %s - %s)", net_if_get_by_iface(iface), iface, name, in cm_get_iface_info()
374 snprintk(buf, len, "%d (%p - %s)", net_if_get_by_iface(iface), iface, in cm_get_iface_info()
414 ip_state = "no IP"; in cm_iface_status()
420 admin_up ? "admin-up" : "admin-down", in cm_iface_status()
421 oper_up ? "oper-up" : "oper-down", in cm_iface_status()
470 /* no need to print anything, parse_target already explained the issue */ in cmd_net_cm_status()
505 /* no need to print anything, parse_target already explained the issue */ in cmd_net_cm_ignore()
547 /* no need to print anything, parse_target already explained the issue */ in cmd_net_cm_watch()
590 /* no need to print anything, parse_target already explained the issue */ in cmd_net_cm_connect()
606 PR("Instructing all non-ignored ifaces to connect.\n"); in cmd_net_cm_connect()
642 /* no need to print anything, parse_target already explained the issue */ in cmd_net_cm_disconnect()
658 PR("Instructing all non-ignored ifaces to disconnect.\n"); in cmd_net_cm_disconnect()
668 "disconnect.\n", iface_info); in cmd_net_cm_disconnect()
694 /* no need to print anything, parse_target already explained the issue */ in cmd_net_cm_up()
709 PR("Taking all non-ignored ifaces admin-up.\n"); in cmd_net_cm_up()
716 PR("Taking iface %s admin-up.\n", iface_info); in cmd_net_cm_up()
740 /* no need to print anything, parse_target already explained the issue */ in cmd_net_cm_down()
756 PR("Taking all non-ignored ifaces admin-down.\n"); in cmd_net_cm_down()
763 PR("Taking iface %s admin-down.\n", iface_info); in cmd_net_cm_down()
906 value == 0 ? " (no timeout)":" seconds"); in cmd_net_cm_timeout()
910 value == 0 ? " (no timeout)":" seconds"); in cmd_net_cm_timeout()
932 SHELL_CMD_ARG(disconnect, NULL,
933 "'net cm disconnect [target]' disconnects the specified iface(s).",
936 "'net cm up [target]' takes the specified iface(s) admin-up.",
939 "'net cm down [target]' takes the specified iface(s) admin-down.",