diff options
-rwxr-xr-x | scripts/bgp/vyatta-bgp.pl | 4 | ||||
-rw-r--r-- | templates/protocols/bgp/node.tag/neighbor/node.tag/address-family/ipv6-unicast/weight/node.def | 4 |
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" |