]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bfdd: remove the constraint of bfd vrf and multihop
authorPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 9 Apr 2019 14:48:43 +0000 (16:48 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 7 May 2019 13:49:39 +0000 (15:49 +0200)
there is no specific constraints that should prevent from configuring a
multihop bfd session within a bfd session.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
bfdd/bfdd_vty.c

index 7c80cfc38eb14c1f87a9d04971db33fc74356306..95b2dc25483183920fd291cc4e192bcc5972e22c 100644 (file)
@@ -90,7 +90,7 @@ DEFUN_NOSH(bfd_enter, bfd_enter_cmd, "bfd", "Configure BFD peers\n")
 
 DEFUN_NOSH(
        bfd_peer_enter, bfd_peer_enter_cmd,
-       "peer <A.B.C.D|X:X::X:X> [{[multihop] local-address <A.B.C.D|X:X::X:X>|interface IFNAME|vrf NAME}]",
+       "peer <A.B.C.D|X:X::X:X> [{multihop|local-address <A.B.C.D|X:X::X:X>|interface IFNAME|vrf NAME}]",
        PEER_STR PEER_IPV4_STR PEER_IPV6_STR
        MHOP_STR
        LOCAL_STR LOCAL_IPV4_STR LOCAL_IPV6_STR
@@ -130,10 +130,6 @@ DEFUN_NOSH(
                vty_out(vty, "%% VRF is not mixable with interface\n");
                return CMD_WARNING_CONFIG_FAILED;
        }
-       if (vrfname && !mhop) {
-               vty_out(vty, "%% VRF only applies with multihop.\n");
-               return CMD_WARNING_CONFIG_FAILED;
-       }
 
        strtosa(peer, &psa);
        if (local) {