diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-08-06 18:54:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-06 18:54:08 +0200 |
commit | 86c892c6589b8df64c050a32f0d69280bd4a92f2 (patch) | |
tree | 3882a7c841c039d9675b2b47423c70f58c2c70ce | |
parent | 4f37ef2df0a72d11e47c67aacf41e35c926e9613 (diff) | |
parent | 73c013bab12402f2c40f35fbffc8b0178482df18 (diff) | |
download | vyatta-cfg-quagga-86c892c6589b8df64c050a32f0d69280bd4a92f2.tar.gz vyatta-cfg-quagga-86c892c6589b8df64c050a32f0d69280bd4a92f2.zip |
Merge pull request #87 from sever-sever/T548
bgp: T548: Add ipv6 maximum-paths and migrate to proper afi
-rw-r--r-- | cfg-version/quagga@8 (renamed from cfg-version/quagga@7) | 0 | ||||
-rwxr-xr-x | scripts/bgp/vyatta-bgp.pl | 36 | ||||
-rw-r--r-- | templates/protocols/bgp/node.tag/address-family/ipv4-unicast/maximum-paths/ebgp/node.def (renamed from templates/protocols/bgp/node.tag/maximum-paths/ebgp/node.def) | 0 | ||||
-rw-r--r-- | templates/protocols/bgp/node.tag/address-family/ipv4-unicast/maximum-paths/ibgp/node.def (renamed from templates/protocols/bgp/node.tag/maximum-paths/ibgp/node.def) | 0 | ||||
-rw-r--r-- | templates/protocols/bgp/node.tag/address-family/ipv4-unicast/maximum-paths/node.def (renamed from templates/protocols/bgp/node.tag/maximum-paths/node.def) | 0 | ||||
-rw-r--r-- | templates/protocols/bgp/node.tag/address-family/ipv6-unicast/maximum-paths/ebgp/node.def | 4 | ||||
-rw-r--r-- | templates/protocols/bgp/node.tag/address-family/ipv6-unicast/maximum-paths/ibgp/node.def | 4 | ||||
-rw-r--r-- | templates/protocols/bgp/node.tag/address-family/ipv6-unicast/maximum-paths/node.def | 1 |
8 files changed, 33 insertions, 12 deletions
diff --git a/cfg-version/quagga@7 b/cfg-version/quagga@8 index e69de29b..e69de29b 100644 --- a/cfg-version/quagga@7 +++ b/cfg-version/quagga@8 diff --git a/scripts/bgp/vyatta-bgp.pl b/scripts/bgp/vyatta-bgp.pl index 9496621e..b0e0af25 100755 --- a/scripts/bgp/vyatta-bgp.pl +++ b/scripts/bgp/vyatta-bgp.pl @@ -83,6 +83,18 @@ my %qcom = ( set => 'router bgp #3 ; address-family ipv6 ; network #7 pathlimit #9', del => 'router bgp #3 ; address-family ipv6 ; no network #7 pathlimit #9', }, + 'protocols bgp var address-family ipv6-unicast maximum-paths' => { + set => undef, + del => undef, + }, + 'protocols bgp var address-family ipv6-unicast maximum-paths ebgp' => { + set => 'router bgp #3 ; address-family ipv6 ; maximum-paths #8', + del => 'router bgp #3 ; address-family ipv6 ; no maximum-paths #8', + }, + 'protocols bgp var address-family ipv6-unicast maximum-paths ibgp' => { + set => 'router bgp #3 ; address-family ipv6 ; maximum-paths ibgp #8', + del => 'router bgp #3 ; address-family ipv6 ; no maximum-paths ibgp #8', + }, 'protocols bgp var address-family ipv6-unicast redistribute' => { set => undef, del => undef, @@ -146,6 +158,18 @@ my %qcom = ( set => 'router bgp #3 ; network #7 route-map #9', del => 'router bgp #3 ; no network #7 route-map #9 ; network #7', }, + 'protocols bgp var address-family ipv4-unicast maximum-paths' => { + set => undef, + del => undef, + }, + 'protocols bgp var address-family ipv4-unicast maximum-paths ebgp' => { + set => 'router bgp #3 ; address-family ipv4 ; maximum-paths #8', + del => 'router bgp #3 ; address-family ipv4 ; no maximum-paths #8', + }, + 'protocols bgp var address-family ipv4-unicast maximum-paths ibgp' => { + set => 'router bgp #3 ; address-family ipv4 ; maximum-paths ibgp #8', + del => 'router bgp #3 ; address-family ipv4 ; no maximum-paths ibgp #8', + }, 'protocols bgp var address-family ipv4-unicast redistribute' => { set => undef, del => undef, @@ -200,18 +224,6 @@ my %qcom = ( del => 'router bgp #3 ; address-family ipv4 unicast ; no redistribute static', noerr => 'set', }, - 'protocols bgp var maximum-paths' => { - set => undef, - del => undef, - }, - 'protocols bgp var maximum-paths ebgp' => { - set => 'router bgp #3 ; maximum-paths #6', - del => 'router bgp #3 ; no maximum-paths #6', - }, - 'protocols bgp var maximum-paths ibgp' => { - set => 'router bgp #3 ; maximum-paths ibgp #6', - del => 'router bgp #3 ; no maximum-paths ibgp #6', - }, 'protocols bgp var neighbor' => { set => undef, del => undef, diff --git a/templates/protocols/bgp/node.tag/maximum-paths/ebgp/node.def b/templates/protocols/bgp/node.tag/address-family/ipv4-unicast/maximum-paths/ebgp/node.def index c01ec064..c01ec064 100644 --- a/templates/protocols/bgp/node.tag/maximum-paths/ebgp/node.def +++ b/templates/protocols/bgp/node.tag/address-family/ipv4-unicast/maximum-paths/ebgp/node.def diff --git a/templates/protocols/bgp/node.tag/maximum-paths/ibgp/node.def b/templates/protocols/bgp/node.tag/address-family/ipv4-unicast/maximum-paths/ibgp/node.def index b437ec0b..b437ec0b 100644 --- a/templates/protocols/bgp/node.tag/maximum-paths/ibgp/node.def +++ b/templates/protocols/bgp/node.tag/address-family/ipv4-unicast/maximum-paths/ibgp/node.def diff --git a/templates/protocols/bgp/node.tag/maximum-paths/node.def b/templates/protocols/bgp/node.tag/address-family/ipv4-unicast/maximum-paths/node.def index 17c33530..17c33530 100644 --- a/templates/protocols/bgp/node.tag/maximum-paths/node.def +++ b/templates/protocols/bgp/node.tag/address-family/ipv4-unicast/maximum-paths/node.def diff --git a/templates/protocols/bgp/node.tag/address-family/ipv6-unicast/maximum-paths/ebgp/node.def b/templates/protocols/bgp/node.tag/address-family/ipv6-unicast/maximum-paths/ebgp/node.def new file mode 100644 index 00000000..c01ec064 --- /dev/null +++ b/templates/protocols/bgp/node.tag/address-family/ipv6-unicast/maximum-paths/ebgp/node.def @@ -0,0 +1,4 @@ +type: u32 +help: Maximum ebgp multipaths +syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 255; "Must be between (1-255)" +val_help: u32:1-255; EBGP multipaths diff --git a/templates/protocols/bgp/node.tag/address-family/ipv6-unicast/maximum-paths/ibgp/node.def b/templates/protocols/bgp/node.tag/address-family/ipv6-unicast/maximum-paths/ibgp/node.def new file mode 100644 index 00000000..b437ec0b --- /dev/null +++ b/templates/protocols/bgp/node.tag/address-family/ipv6-unicast/maximum-paths/ibgp/node.def @@ -0,0 +1,4 @@ +type: u32 +help: Maximum ibgp multipaths +syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 255; "Must be between (1-255)" +val_help: u32:1-255; IBGP multipaths diff --git a/templates/protocols/bgp/node.tag/address-family/ipv6-unicast/maximum-paths/node.def b/templates/protocols/bgp/node.tag/address-family/ipv6-unicast/maximum-paths/node.def new file mode 100644 index 00000000..17c33530 --- /dev/null +++ b/templates/protocols/bgp/node.tag/address-family/ipv6-unicast/maximum-paths/node.def @@ -0,0 +1 @@ +help: BGP multipaths |