From f16a11dc823d3eae8b6825b296131da03e2259c4 Mon Sep 17 00:00:00 2001 From: Robert Bays Date: Wed, 14 Jul 2010 13:48:54 -0700 Subject: fix for bug 5801 --- .../bgp/node.tag/address-family/ipv6-unicast/network/node.def | 2 +- .../ipv6-unicast/network/node.tag/path-limit/node.def | 6 ++++++ .../ipv6-unicast/network/node.tag/route-map/node.def | 9 +++++++++ 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 templates/protocols/bgp/node.tag/address-family/ipv6-unicast/network/node.tag/path-limit/node.def create mode 100644 templates/protocols/bgp/node.tag/address-family/ipv6-unicast/network/node.tag/route-map/node.def (limited to 'templates') diff --git a/templates/protocols/bgp/node.tag/address-family/ipv6-unicast/network/node.def b/templates/protocols/bgp/node.tag/address-family/ipv6-unicast/network/node.def index bd7e5909..fa519cc3 100644 --- a/templates/protocols/bgp/node.tag/address-family/ipv6-unicast/network/node.def +++ b/templates/protocols/bgp/node.tag/address-family/ipv6-unicast/network/node.def @@ -1,4 +1,4 @@ -multi: +tag: type: ipv6net help: Set a BGP IPv6 network comp_help: diff --git a/templates/protocols/bgp/node.tag/address-family/ipv6-unicast/network/node.tag/path-limit/node.def b/templates/protocols/bgp/node.tag/address-family/ipv6-unicast/network/node.tag/path-limit/node.def new file mode 100644 index 00000000..8a0ce42c --- /dev/null +++ b/templates/protocols/bgp/node.tag/address-family/ipv6-unicast/network/node.tag/path-limit/node.def @@ -0,0 +1,6 @@ +type: u32 +help: Set an AS-path hopcount limit +comp_help: possible completions: + <0-255> AS path hop count limit +commit:expression: $VAR(@) >= 0 && $VAR(@) <= 255; "protocols bgp $VAR(../../../../@) address-family ipv6-unicast network $VAR(../@) path-limit: path-limit must be between 0-255." +commit:expression: $VAR(../route-map/) == ""; "protocols bgp $VAR(../../../../@) address-family ipv6-unicast network $VAR(../@) path-limit: you can't set path-limit and route-map for network" diff --git a/templates/protocols/bgp/node.tag/address-family/ipv6-unicast/network/node.tag/route-map/node.def b/templates/protocols/bgp/node.tag/address-family/ipv6-unicast/network/node.tag/route-map/node.def new file mode 100644 index 00000000..31f79c75 --- /dev/null +++ b/templates/protocols/bgp/node.tag/address-family/ipv6-unicast/network/node.tag/route-map/node.def @@ -0,0 +1,9 @@ +type: txt +help: Set a route-map to modify route attributes +comp_help: possible completions: + route-map name +allowed: local -a params + params=$( /opt/vyatta/sbin/vyatta-policy.pl --list-policy route-map ) + echo -n ${params[@]##*/} +commit:expression: exec "/opt/vyatta/sbin/vyatta_quagga_utils.pl --exists \"policy route-map $VAR(@)\" ";"protocols bgp $VAR(../../../../@) address-family ipv6-unicast network $VAR(../@) route-map: route-map $VAR(@) doesn't exist" +commit:expression: $VAR(../path-limit/) == ""; "protocols bgp $VAR(../../../../@) address-family ipv6-unicast network $VAR(../@) route-map: you can't set route-map and path-limit for network" -- cgit v1.2.3