diff options
author | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2019-05-25 15:08:46 +0200 |
---|---|---|
committer | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2019-06-22 15:08:33 +0200 |
commit | 3e4e7405ff2d9373c4e43550fa37c43fd06504d5 (patch) | |
tree | 574793a5e2a6a8a397b2817dbba0558731360640 | |
parent | bfdd: export some private functions (diff) | |
download | frr-3e4e7405ff2d9373c4e43550fa37c43fd06504d5.tar.xz frr-3e4e7405ff2d9373c4e43550fa37c43fd06504d5.zip |
bfdd: remove the label command
This command has no use for CLI and is relevant for the control socket only.
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
-rw-r--r-- | bfdd/bfdd_vty.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/bfdd/bfdd_vty.c b/bfdd/bfdd_vty.c index 75f6632db..6f0b85c41 100644 --- a/bfdd/bfdd_vty.c +++ b/bfdd/bfdd_vty.c @@ -296,27 +296,6 @@ DEFPY(bfd_peer_echo, bfd_peer_echo_cmd, "[no] echo-mode", return CMD_SUCCESS; } -DEFPY(bfd_peer_label, bfd_peer_label_cmd, "label WORD$label", - "Register peer label\n" - "Register peer label identification\n") -{ - struct bfd_session *bs; - - /* Validate label length. */ - if (strlen(label) >= MAXNAMELEN) { - vty_out(vty, "%% Label name is too long\n"); - return CMD_WARNING_CONFIG_FAILED; - } - - bs = VTY_GET_CONTEXT(bfd_session); - if (bfd_session_update_label(bs, label) == -1) { - vty_out(vty, "%% Failed to update peer label.\n"); - return CMD_WARNING_CONFIG_FAILED; - } - - return CMD_SUCCESS; -} - DEFPY(bfd_no_peer, bfd_no_peer_cmd, "no peer <A.B.C.D|X:X::X:X>$peer [{multihop|local-address <A.B.C.D|X:X::X:X>$local|interface IFNAME$ifname|vrf NAME$vrfname}]", NO_STR @@ -1103,5 +1082,4 @@ void bfdd_vty_init(void) install_element(BFD_PEER_NODE, &bfd_peer_echointerval_cmd); install_element(BFD_PEER_NODE, &bfd_peer_shutdown_cmd); install_element(BFD_PEER_NODE, &bfd_peer_echo_cmd); - install_element(BFD_PEER_NODE, &bfd_peer_label_cmd); } |