From 73c013bab12402f2c40f35fbffc8b0178482df18 Mon Sep 17 00:00:00 2001 From: Viacheslav Date: Thu, 5 Aug 2021 16:50:08 +0000 Subject: bgp: T548: Add ipv6 maximum-path and migrate to proper afi --- scripts/bgp/vyatta-bgp.pl | 36 ++++++++++++++++++++++++------------ 1 file changed, 24 insertions(+), 12 deletions(-) (limited to 'scripts') 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, -- cgit v1.2.3