summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Bays <robert@vyatta.com>2011-12-19 17:17:42 -0800
committerRobert Bays <robert@vyatta.com>2011-12-19 17:17:42 -0800
commitbdf243c3ffafb597bd0cda1bc96a8e332a865d57 (patch)
tree966fb1cf3d35c1aee796ca4ee3819a0b8d22a1b5
parent63cc9f3145add7631231bed535941aba706cb6ff (diff)
downloadvyatta-cfg-quagga-bdf243c3ffafb597bd0cda1bc96a8e332a865d57.tar.gz
vyatta-cfg-quagga-bdf243c3ffafb597bd0cda1bc96a8e332a865d57.zip
Bug 7582: Errors on generating allowed values under an edit level for protocols bgp <> neighbor <> peer-group
fix ipv6 peer-group template to use variable reference rather than compwords
-rw-r--r--templates/protocols/bgp/node.tag/neighbor/node.tag/address-family/ipv6-unicast/peer-group/node.def2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/protocols/bgp/node.tag/neighbor/node.tag/address-family/ipv6-unicast/peer-group/node.def b/templates/protocols/bgp/node.tag/neighbor/node.tag/address-family/ipv6-unicast/peer-group/node.def
index 49b99a60..82806881 100644
--- a/templates/protocols/bgp/node.tag/neighbor/node.tag/address-family/ipv6-unicast/peer-group/node.def
+++ b/templates/protocols/bgp/node.tag/neighbor/node.tag/address-family/ipv6-unicast/peer-group/node.def
@@ -1,6 +1,6 @@
type: txt
help: IPv6 peer group for this peer
allowed: local -a params
- params=$( /opt/vyatta/sbin/vyatta-bgp.pl --list-peer-groups --as ${COMP_WORDS[3]} )
+ params=$( /opt/vyatta/sbin/vyatta-bgp.pl --list-peer-groups --as $VAR(../../../../@))
echo -n ${params[@]##*/}
commit:expression: exec "/opt/vyatta/sbin/vyatta_quagga_utils.pl --exists \"protocols bgp $VAR(../../../../@) peer-group $VAR(@)\" "; "protocols bgp $VAR(../../../../@) peer-group $VAR(@) doesn't exist"