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 From ed6f25d767383d5d6f3e57584f218545baf10af6 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 22 Jun 2019 19:03:21 +0200 Subject: bfd: T1183: add BGP neighbor BFD support set protocols bgp neighbor bfd set protocols bgp peer-group bfd --- scripts/bgp/vyatta-bgp.pl | 8 ++++++++ templates/protocols/bgp/node.tag/neighbor/node.tag/bfd/node.def | 1 + templates/protocols/bgp/node.tag/peer-group/node.tag/bfd/node.def | 1 + 3 files changed, 10 insertions(+) create mode 100644 templates/protocols/bgp/node.tag/neighbor/node.tag/bfd/node.def create mode 100644 templates/protocols/bgp/node.tag/peer-group/node.tag/bfd/node.def diff --git a/scripts/bgp/vyatta-bgp.pl b/scripts/bgp/vyatta-bgp.pl index 2a3ca514..fe62deb7 100755 --- a/scripts/bgp/vyatta-bgp.pl +++ b/scripts/bgp/vyatta-bgp.pl @@ -571,6 +571,10 @@ my %qcom = ( set => 'router bgp #3 ; neighbor #5 passive', del => 'router bgp #3 ; no neighbor #5 passive', }, + 'protocols bgp var neighbor var bfd' => { + set => 'router bgp #3 ; neighbor #5 bfd', + del => 'router bgp #3 ; no neighbor #5 bfd', + }, 'protocols bgp var neighbor var password' => { set => 'router bgp #3 ; neighbor #5 password #7', del => 'router bgp #3 ; no neighbor #5 password', @@ -1104,6 +1108,10 @@ my %qcom = ( set => 'router bgp #3 ; neighbor #5 passive', del => 'router bgp #3 ; no neighbor #5 passive', }, + 'protocols bgp var peer-group var bfd' => { + set => 'router bgp #3 ; neighbor #5 bfd', + del => 'router bgp #3 ; no neighbor #5 bfd', + }, 'protocols bgp var peer-group var password' => { set => 'router bgp #3 ; neighbor #5 password #7', del => 'router bgp #3 ; no neighbor #5 password', diff --git a/templates/protocols/bgp/node.tag/neighbor/node.tag/bfd/node.def b/templates/protocols/bgp/node.tag/neighbor/node.tag/bfd/node.def new file mode 100644 index 00000000..b5b6a244 --- /dev/null +++ b/templates/protocols/bgp/node.tag/neighbor/node.tag/bfd/node.def @@ -0,0 +1 @@ +help: Enable Bidirectional Forwarding Detection (BFD) with this neighbor diff --git a/templates/protocols/bgp/node.tag/peer-group/node.tag/bfd/node.def b/templates/protocols/bgp/node.tag/peer-group/node.tag/bfd/node.def new file mode 100644 index 00000000..b5b6a244 --- /dev/null +++ b/templates/protocols/bgp/node.tag/peer-group/node.tag/bfd/node.def @@ -0,0 +1 @@ +help: Enable Bidirectional Forwarding Detection (BFD) with this neighbor -- cgit v1.2.3 From c0293182e9fafbad28cc0a790f881c812f52406b Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sun, 23 Jun 2019 11:06:59 +0200 Subject: bfd: T1183: adjust BGP/OSPF help text on BFD --- interface-templates/ip/ospf/bfd/node.def | 2 +- interface-templates/ipv6/ospfv3/bfd/node.def | 2 +- templates/protocols/bgp/node.tag/neighbor/node.tag/bfd/node.def | 2 +- templates/protocols/bgp/node.tag/peer-group/node.tag/bfd/node.def | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/interface-templates/ip/ospf/bfd/node.def b/interface-templates/ip/ospf/bfd/node.def index fc393c2a..619b7415 100644 --- a/interface-templates/ip/ospf/bfd/node.def +++ b/interface-templates/ip/ospf/bfd/node.def @@ -1,3 +1,3 @@ -help: Enable Bidirectional Forwarding Detection (BFD) on this interface +help: Enable Bidirectional Forwarding Detection (BFD) support 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 index 79de2a18..7ef33bb7 100644 --- a/interface-templates/ipv6/ospfv3/bfd/node.def +++ b/interface-templates/ipv6/ospfv3/bfd/node.def @@ -1,4 +1,4 @@ -help: Enable Bidirectional Forwarding Detection (BFD) on this interface +help: Enable Bidirectional Forwarding Detection (BFD) support 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" diff --git a/templates/protocols/bgp/node.tag/neighbor/node.tag/bfd/node.def b/templates/protocols/bgp/node.tag/neighbor/node.tag/bfd/node.def index b5b6a244..284ce4d8 100644 --- a/templates/protocols/bgp/node.tag/neighbor/node.tag/bfd/node.def +++ b/templates/protocols/bgp/node.tag/neighbor/node.tag/bfd/node.def @@ -1 +1 @@ -help: Enable Bidirectional Forwarding Detection (BFD) with this neighbor +help: Enable Bidirectional Forwarding Detection (BFD) support diff --git a/templates/protocols/bgp/node.tag/peer-group/node.tag/bfd/node.def b/templates/protocols/bgp/node.tag/peer-group/node.tag/bfd/node.def index b5b6a244..284ce4d8 100644 --- a/templates/protocols/bgp/node.tag/peer-group/node.tag/bfd/node.def +++ b/templates/protocols/bgp/node.tag/peer-group/node.tag/bfd/node.def @@ -1 +1 @@ -help: Enable Bidirectional Forwarding Detection (BFD) with this neighbor +help: Enable Bidirectional Forwarding Detection (BFD) support -- cgit v1.2.3