From 6bc6b27c86d5b061ab7dfd0cdcd25463a3f594ae Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Fri, 21 Jun 2019 19:47:15 +0200 Subject: bfd: T1183: add OSPF BFD support on interface nodes set interface ethernet eth0 ip ospf bfd delete interface ethernet eth0 ip ospf bfd --- interface-templates/ip/ospf/bfd/node.def | 3 +++ interface-templates/ipv6/ospfv3/bfd/node.def | 4 ++++ 2 files changed, 7 insertions(+) create mode 100644 interface-templates/ip/ospf/bfd/node.def create mode 100644 interface-templates/ipv6/ospfv3/bfd/node.def diff --git a/interface-templates/ip/ospf/bfd/node.def b/interface-templates/ip/ospf/bfd/node.def new file mode 100644 index 00000000..fc393c2a --- /dev/null +++ b/interface-templates/ip/ospf/bfd/node.def @@ -0,0 +1,3 @@ +help: Enable Bidirectional Forwarding Detection (BFD) on this interface +create:vtysh -c "configure terminal" -c "interface $IFNAME" -c "ip ospf bfd" +delete:vtysh -c "configure terminal" -c "interface $IFNAME" -c "no ip ospf bfd" diff --git a/interface-templates/ipv6/ospfv3/bfd/node.def b/interface-templates/ipv6/ospfv3/bfd/node.def new file mode 100644 index 00000000..79de2a18 --- /dev/null +++ b/interface-templates/ipv6/ospfv3/bfd/node.def @@ -0,0 +1,4 @@ +help: Enable Bidirectional Forwarding Detection (BFD) on this interface +create:vtysh -c "configure terminal" -c "interface $VAR(../../../@)" -c "ipv6 ospf6 bfd" +delete:vtysh -c "configure terminal" -c "interface $VAR(../../../@)" -c "no ipv6 ospf6 bfd" + -- cgit v1.2.3