diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-12-31 22:29:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-31 22:29:54 +0100 |
commit | f3f1a1242a67b6cadbb5c04c54345e6b88e4096e (patch) | |
tree | 5e4c305b8d3904ccfda60db6c87600481eb377f7 | |
parent | abc247ede51f338410b676da9cffe106f17b9abc (diff) | |
parent | 6c7838254a321ec9764e4b79c4ac7aab11e7050a (diff) | |
download | vyatta-cfg-quagga-f3f1a1242a67b6cadbb5c04c54345e6b88e4096e.tar.gz vyatta-cfg-quagga-f3f1a1242a67b6cadbb5c04c54345e6b88e4096e.zip |
Merge pull request #39 from zdc/T1817
BGP: T1817: Added nexthop-self force option
5 files changed, 20 insertions, 0 deletions
diff --git a/scripts/bgp/vyatta-bgp.pl b/scripts/bgp/vyatta-bgp.pl index a99b7897..78697a47 100755 --- a/scripts/bgp/vyatta-bgp.pl +++ b/scripts/bgp/vyatta-bgp.pl @@ -306,6 +306,10 @@ my %qcom = ( set => 'router bgp #3 ; address-family ipv6 ; neighbor #5 next-hop-self', del => 'router bgp #3 ; address-family ipv6 ; no neighbor #5 next-hop-self', }, + 'protocols bgp var neighbor var address-family ipv6-unicast nexthop-self force' => { + set => 'router bgp #3 ; address-family ipv6 ; neighbor #5 next-hop-self force', + del => 'router bgp #3 ; address-family ipv6 ; no neighbor #5 next-hop-self force', + }, 'protocols bgp var neighbor var address-family ipv6-unicast peer-group' => { set => 'router bgp #3 ; address-family ipv6 ; neighbor #5 peer-group #9', del => 'router bgp #3 ; address-family ipv6 ; no neighbor #5 peer-group #9 ; neighbor #5 activate', @@ -451,6 +455,10 @@ my %qcom = ( set => 'router bgp #3 ; address-family ipv4 unicast ; neighbor #5 next-hop-self', del => 'router bgp #3 ; address-family ipv4 unicast ; no neighbor #5 next-hop-self', }, + 'protocols bgp var neighbor var address-family ipv4-unicast nexthop-self force' => { + set => 'router bgp #3 ; address-family ipv4 unicast ; neighbor #5 next-hop-self force', + del => 'router bgp #3 ; address-family ipv4 unicast ; no neighbor #5 next-hop-self force', + }, 'protocols bgp var neighbor var address-family ipv4-unicast prefix-list' => { set => undef, del => undef, @@ -873,6 +881,10 @@ my %qcom = ( set => 'router bgp #3 ; address-family ipv6 ; neighbor #5 next-hop-self', del => 'router bgp #3 ; address-family ipv6 ; no neighbor #5 next-hop-self', }, + 'protocols bgp var peer-group var address-family ipv6-unicast nexthop-self force' => { + set => 'router bgp #3 ; address-family ipv6 ; neighbor #5 next-hop-self force', + del => 'router bgp #3 ; address-family ipv6 ; no neighbor #5 next-hop-self force', + }, 'protocols bgp var peer-group var address-family ipv6-unicast prefix-list' => { set => undef, del => undef, @@ -1011,6 +1023,10 @@ my %qcom = ( set => 'router bgp #3 ; address-family ipv4 unicast ; neighbor #5 next-hop-self', del => 'router bgp #3 ; address-family ipv4 unicast ; no neighbor #5 next-hop-self', }, + 'protocols bgp var peer-group var address-family ipv4-unicast nexthop-self force' => { + set => 'router bgp #3 ; address-family ipv4 unicast ; neighbor #5 next-hop-self force', + del => 'router bgp #3 ; address-family ipv4 unicast ; no neighbor #5 next-hop-self force', + }, 'protocols bgp var peer-group var address-family ipv4-unicast prefix-list' => { set => undef, del => undef, diff --git a/templates/protocols/bgp/node.tag/neighbor/node.tag/address-family/ipv4-unicast/nexthop-self/force/node.def b/templates/protocols/bgp/node.tag/neighbor/node.tag/address-family/ipv4-unicast/nexthop-self/force/node.def new file mode 100644 index 00000000..e78bd2e5 --- /dev/null +++ b/templates/protocols/bgp/node.tag/neighbor/node.tag/address-family/ipv4-unicast/nexthop-self/force/node.def @@ -0,0 +1 @@ +help: Set the next hop to self for reflected routes diff --git a/templates/protocols/bgp/node.tag/neighbor/node.tag/address-family/ipv6-unicast/nexthop-self/force/node.def b/templates/protocols/bgp/node.tag/neighbor/node.tag/address-family/ipv6-unicast/nexthop-self/force/node.def new file mode 100644 index 00000000..e78bd2e5 --- /dev/null +++ b/templates/protocols/bgp/node.tag/neighbor/node.tag/address-family/ipv6-unicast/nexthop-self/force/node.def @@ -0,0 +1 @@ +help: Set the next hop to self for reflected routes diff --git a/templates/protocols/bgp/node.tag/peer-group/node.tag/address-family/ipv4-unicast/nexthop-self/force/node.def b/templates/protocols/bgp/node.tag/peer-group/node.tag/address-family/ipv4-unicast/nexthop-self/force/node.def new file mode 100644 index 00000000..e78bd2e5 --- /dev/null +++ b/templates/protocols/bgp/node.tag/peer-group/node.tag/address-family/ipv4-unicast/nexthop-self/force/node.def @@ -0,0 +1 @@ +help: Set the next hop to self for reflected routes diff --git a/templates/protocols/bgp/node.tag/peer-group/node.tag/address-family/ipv6-unicast/nexthop-self/force/node.def b/templates/protocols/bgp/node.tag/peer-group/node.tag/address-family/ipv6-unicast/nexthop-self/force/node.def new file mode 100644 index 00000000..e78bd2e5 --- /dev/null +++ b/templates/protocols/bgp/node.tag/peer-group/node.tag/address-family/ipv6-unicast/nexthop-self/force/node.def @@ -0,0 +1 @@ +help: Set the next hop to self for reflected routes |