mobile: Use enum and not magic value in the VTY

Change-Id: I8a1d975997e592344327e6b0783bd0c5d2534b02
This commit is contained in:
Holger Hans Peter Freyther 2017-11-29 11:50:54 +08:00
parent ff43e1a1b3
commit 271cdad401
1 changed files with 1 additions and 1 deletions

View File

@ -2703,7 +2703,7 @@ DEFUN(cfg_no_shutdown, cfg_ms_no_shutdown_cmd, "no shutdown",
return CMD_SUCCESS;
llist_for_each_entry(tmp, &ms_list, entity) {
if (tmp->shutdown == 3)
if (tmp->shutdown == MS_SHUTDOWN_COMPL)
continue;
if (!strcmp(ms->settings.layer2_socket_path,
tmp->settings.layer2_socket_path)) {