diff options
author | zsdc <taras@vyos.io> | 2019-12-31 23:01:42 +0200 |
---|---|---|
committer | zsdc <taras@vyos.io> | 2019-12-31 23:01:42 +0200 |
commit | 6c7838254a321ec9764e4b79c4ac7aab11e7050a (patch) | |
tree | 5e4c305b8d3904ccfda60db6c87600481eb377f7 /scripts | |
parent | abc247ede51f338410b676da9cffe106f17b9abc (diff) | |
download | vyatta-cfg-quagga-6c7838254a321ec9764e4b79c4ac7aab11e7050a.tar.gz vyatta-cfg-quagga-6c7838254a321ec9764e4b79c4ac7aab11e7050a.zip |
BGP: T1817: Added nexthop-self force option
A simple "nexthop-self" command does not affect route-reflector clients, we need to additionally use "force" for them.
This change adding "force" to both ipv4-unicast and ipv6-unicast families in neighbor and peer-group sections.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/bgp/vyatta-bgp.pl | 16 |
1 files changed, 16 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, |