From 04570b70ef05a48bed8ddf1f0e9dc6cf14600b98 Mon Sep 17 00:00:00 2001 From: sever-sever Date: Wed, 27 Jan 2021 12:01:09 +0000 Subject: bgp: T3085: Add parameter weight for ipv6 neighbor --- scripts/bgp/vyatta-bgp.pl | 4 ++++ .../neighbor/node.tag/address-family/ipv6-unicast/weight/node.def | 4 ++++ 2 files changed, 8 insertions(+) create mode 100644 templates/protocols/bgp/node.tag/neighbor/node.tag/address-family/ipv6-unicast/weight/node.def 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" -- cgit v1.2.3