summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ldpd/ldp_vty_cmds.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ldpd/ldp_vty_cmds.c b/ldpd/ldp_vty_cmds.c
index 871905aa8f..8a8d903a61 100644
--- a/ldpd/ldp_vty_cmds.c
+++ b/ldpd/ldp_vty_cmds.c
@@ -759,8 +759,9 @@ DEFUN (ldp_clear_mpls_ldp_neighbor,
int idx = 0;
const char *address = NULL;
- if (argv_find(argv, argc, "neighbor", &idx))
- address = argv[idx + 1]->arg;
+ if (argv_find(argv, argc, "A.B.C.D", &idx) ||
+ argv_find(argv, argc, "X:X::X:X", &idx))
+ address = argv[idx]->arg;
return (ldp_vty_clear_nbr(vty, address));
}