summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2021-01-27 19:09:05 +0700
committerGitHub <noreply@github.com>2021-01-27 19:09:05 +0700
commitb9b3ede7785a0bf2bffdc3b7c4899f7a991bf9c7 (patch)
tree5b7465f6febbb58291305c12bfe0b4e4369528a1
parent56b11f3a3c1cc3828754910336eb4a4a53ac34e9 (diff)
parent04570b70ef05a48bed8ddf1f0e9dc6cf14600b98 (diff)
downloadvyatta-cfg-quagga-b9b3ede7785a0bf2bffdc3b7c4899f7a991bf9c7.tar.gz
vyatta-cfg-quagga-b9b3ede7785a0bf2bffdc3b7c4899f7a991bf9c7.zip
Merge pull request #68 from sever-sever/T3085
bgp: T3085: Add parameter weight for ipv6 neighbor
-rwxr-xr-xscripts/bgp/vyatta-bgp.pl4
-rw-r--r--templates/protocols/bgp/node.tag/neighbor/node.tag/address-family/ipv6-unicast/weight/node.def4
2 files changed, 8 insertions, 0 deletions
diff --git a/scripts/bgp/vyatta-bgp.pl b/scripts/bgp/vyatta-bgp.pl
index 13a2e31e..917fb93b 100755
--- a/scripts/bgp/vyatta-bgp.pl
+++ b/scripts/bgp/vyatta-bgp.pl
@@ -214,6 +214,10 @@ my %qcom = (
set => 'router bgp #3 ; address-family ipv4 unicast ; neighbor #5 weight #9',
del => 'router bgp #3 ; address-family ipv4 unicast ; no neighbor #5 weight #9',
},
+ 'protocols bgp var neighbor var address-family ipv6-unicast weight' => {
+ set => 'router bgp #3 ; address-family ipv6 unicast ; neighbor #5 weight #9',
+ del => 'router bgp #3 ; address-family ipv6 unicast ; no neighbor #5 weight #9',
+ },
'protocols bgp var neighbor var address-family ipv6-unicast' => {
set => 'router bgp #3 ; address-family ipv6 ; neighbor #5 activate',
del => 'router bgp #3 ; address-family ipv6 ; no neighbor #5 activate',
diff --git a/templates/protocols/bgp/node.tag/neighbor/node.tag/address-family/ipv6-unicast/weight/node.def b/templates/protocols/bgp/node.tag/neighbor/node.tag/address-family/ipv6-unicast/weight/node.def
new file mode 100644
index 00000000..ec3595f5
--- /dev/null
+++ b/templates/protocols/bgp/node.tag/neighbor/node.tag/address-family/ipv6-unicast/weight/node.def
@@ -0,0 +1,4 @@
+type: u32
+help: Default weight for routes from this neighbor
+val_help: u32: 1-65535; Weight for routes from this neighbor
+syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 65535; "weight must be between 1 and 65535"