From ec76e5bf1f355545c2b73614c809fb04e12faa8c Mon Sep 17 00:00:00 2001 From: Ruben Herold Date: Wed, 29 May 2019 14:09:29 +0200 Subject: T1390: Add extended nexthop support (cherry picked from commit 613742c61c12e1df7b79939b3862419a3e6cdafb) --- scripts/bgp/vyatta-bgp.pl | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'scripts/bgp/vyatta-bgp.pl') diff --git a/scripts/bgp/vyatta-bgp.pl b/scripts/bgp/vyatta-bgp.pl index 7431405c..6d989089 100755 --- a/scripts/bgp/vyatta-bgp.pl +++ b/scripts/bgp/vyatta-bgp.pl @@ -522,6 +522,10 @@ my %qcom = ( set => 'router bgp #3 ; neighbor #5 capability dynamic', del => 'router bgp #3 ; no neighbor #5 capability dynamic', }, + 'protocols bgp var neighbor var capability extended-nexthop' => { + set => 'router bgp #3 ; neighbor #5 capability extended-nexthop', + del => 'router bgp #3 ; no neighbor #5 capability extended-nexthop', + }, 'protocols bgp var neighbor var local-as' => { set => undef, del => undef, @@ -1039,6 +1043,10 @@ my %qcom = ( set => 'router bgp #3 ; neighbor #5 capability dynamic', del => 'router bgp #3 ; no neighbor #5 capability dynamic', }, + 'protocols bgp var peer-group var capability extended-nexthop' => { + set => 'router bgp #3 ; neighbor #5 capability extended-nexthop', + del => 'router bgp #3 ; no neighbor #5 capability extended-nexthop', + }, 'protocols bgp var peer-group var disable-capability-negotiation' => { set => 'router bgp #3 ; neighbor #5 dont-capability-negotiate', del => 'router bgp #3 ; no neighbor #5 dont-capability-negotiate', @@ -1323,7 +1331,7 @@ sub checkOverwritePeerGroupParameters return -1; } - my @overwritelist = ('allowas-in', 'allowas-in number', 'capability dynamic', + my @overwritelist = ('allowas-in', 'allowas-in number', 'capability dynamic', 'capability extended-nexthop', 'distribute-list import', 'filter-list import', 'maximum-prefix', 'port', 'prefix-list import', 'route-map import', 'soft-reconfiguration inbound', 'strict-capability-match'); -- cgit v1.2.3