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
* Configuration rules:
*
* Single hop:
- * peer + (optional vxlan or interface name)
+ * peer + (interface name)
*
* Multi hop:
* peer + local + (optional vrf)
if (local)
bpc->bpc_local = *local;
- if (peer) {
- bpc->bpc_peer = *peer;
- } else {
- /* Peer configuration is mandatory. */
- snprintf(ebuf, ebuflen, "no peer configured");
- return -1;
- }
-
+ bpc->bpc_peer = *peer;
bpc->bpc_mhop = mhop;
-#if 0
- /* Handle VxLAN configuration. */
- if (vxlan >= 0) {
- if (vxlan > ((1 << 24) - 1)) {
- snprintf(ebuf, ebuflen, "invalid VxLAN %d", vxlan);
- return -1;
- }
- if (bpc->bpc_mhop) {
- snprintf(ebuf, ebuflen,
- "multihop doesn't accept VxLAN");
- return -1;
- }
-
- bpc->bpc_vxlan = vxlan;
- }
-#endif /* VxLAN */
-
/* Handle interface specification configuration. */
if (ifname) {
if (bpc->bpc_mhop) {