summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorRobert Bays <robert@vyatta.com>2011-09-29 12:00:10 -0700
committerRobert Bays <robert@vyatta.com>2011-09-29 12:00:10 -0700
commitff703eb15618b2ebcc1ed85563a73de944d59664 (patch)
treeb82291e56d92cd826bfb094fa2a74d221808a9f0 /templates
parent33d8cca996a4f8dd1a5d918c57cc4c82696694bb (diff)
downloadvyatta-cfg-quagga-ff703eb15618b2ebcc1ed85563a73de944d59664.tar.gz
vyatta-cfg-quagga-ff703eb15618b2ebcc1ed85563a73de944d59664.zip
bgp: Bug 6033 - There is no auto completion for "bgp <> neighbor <> peer-group"
Diffstat (limited to 'templates')
-rw-r--r--templates/protocols/bgp/node.tag/neighbor/node.tag/address-family/ipv6-unicast/peer-group/node.def4
-rw-r--r--templates/protocols/bgp/node.tag/neighbor/node.tag/peer-group/node.def4
2 files changed, 8 insertions, 0 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 a6e2f658..49b99a60 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,2 +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]} )
+ 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"
diff --git a/templates/protocols/bgp/node.tag/neighbor/node.tag/peer-group/node.def b/templates/protocols/bgp/node.tag/neighbor/node.tag/peer-group/node.def
index e407b561..83985e10 100644
--- a/templates/protocols/bgp/node.tag/neighbor/node.tag/peer-group/node.def
+++ b/templates/protocols/bgp/node.tag/neighbor/node.tag/peer-group/node.def
@@ -1,2 +1,6 @@
type: txt
help: IPv4 peer group for this peer
+allowed: local -a params
+ params=$( /opt/vyatta/sbin/vyatta-bgp.pl --list-peer-groups --as ${COMP_WORDS[3]} )
+ 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"