summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRobert Bays <rbays@roatan.(none)>2010-06-08 12:26:44 -0700
committerRobert Bays <rbays@roatan.(none)>2010-06-08 12:26:44 -0700
commit85012ac0520e0662e6cf321c745bb988b191184a (patch)
treee653bf579aaccf9467d33a974a7b952d2201544f /scripts
parent1e8d7504c3074d78c7078b601404a510211ed3be (diff)
downloadvyatta-cfg-quagga-85012ac0520e0662e6cf321c745bb988b191184a.tar.gz
vyatta-cfg-quagga-85012ac0520e0662e6cf321c745bb988b191184a.zip
fix for bug 874: allow setting administrative distance
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/bgp/vyatta-bgp.pl20
1 files changed, 20 insertions, 0 deletions
diff --git a/scripts/bgp/vyatta-bgp.pl b/scripts/bgp/vyatta-bgp.pl
index ae496a65..444f6bde 100755
--- a/scripts/bgp/vyatta-bgp.pl
+++ b/scripts/bgp/vyatta-bgp.pl
@@ -611,6 +611,26 @@ my %qcom = (
set => 'router bgp #3 ; no bgp network import-check',
del => 'router bgp #3 ; bgp network import-check',
},
+ 'protocols bgp var parameters distance' => {
+ set => undef,
+ del => undef,
+ },
+ 'protocols bgp var parameters distance global' => {
+ set => 'router bgp #3 ; distance bgp @external @internal @local',
+ del => 'router bgp #3 ; no distance bgp',
+ },
+ 'protocols bgp var parameters distance prefix' => {
+ set => undef,
+ del => undef,
+ },
+ 'protocols bgp var parameters distance prefix var' => {
+ set => undef,
+ del => undef,
+ },
+ 'protocols bgp var parameters distance prefix var distance' => {
+ set => 'router bgp #3 ; distance #9 #7 ',
+ del => 'router bgp #3 ; no distance #9 #7',
+ },
'protocols bgp var parameters enforce-first-as' => {
set => 'router bgp #3 ; bgp enforce-first-as',
del => 'router bgp #3 ; no bgp enforce-first-as',