summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@uffda.(none)>2007-10-22 17:38:11 -0700
committerStig Thormodsrud <stig@uffda.(none)>2007-10-22 17:38:11 -0700
commitee92745ae3d00f24583a058a1222659de50a8468 (patch)
treea6549d431c2b9280b36cc6bb6c8d844de2873b57 /templates
parent9e664b053f5537e124a00b6023a69dea5b712fcc (diff)
parent83975de19b14b90210a2de22cb3e581e757c83b5 (diff)
downloadvyatta-cfg-quagga-ee92745ae3d00f24583a058a1222659de50a8468.tar.gz
vyatta-cfg-quagga-ee92745ae3d00f24583a058a1222659de50a8468.zip
Merge branch 'master' of http://phuket.vyatta.com/vyatta-cfg-quagga
Diffstat (limited to 'templates')
-rw-r--r--templates/protocols/bgp/node.tag/neighbor/node.tag/password/node.def7
-rw-r--r--templates/protocols/bgp/node.tag/neighbor/node.tag/prefix-list/in/node.def2
-rw-r--r--templates/protocols/bgp/node.tag/neighbor/node.tag/prefix-list/node.def2
3 files changed, 9 insertions, 2 deletions
diff --git a/templates/protocols/bgp/node.tag/neighbor/node.tag/password/node.def b/templates/protocols/bgp/node.tag/neighbor/node.tag/password/node.def
new file mode 100644
index 00000000..3a10237a
--- /dev/null
+++ b/templates/protocols/bgp/node.tag/neighbor/node.tag/password/node.def
@@ -0,0 +1,7 @@
+type: txt
+help: "Specify BGP neighbor password"
+syntax: ($(../peer-group) != "") || ($(../remote-as) != ""); "remote-as or peer-group must be specified first"
+update: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../@)\" \
+ -c \"neighbor $(../@) password $(@)\" "
+delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../@)\" \
+ -c \"no neighbor $(../@) password\" "
diff --git a/templates/protocols/bgp/node.tag/neighbor/node.tag/prefix-list/in/node.def b/templates/protocols/bgp/node.tag/neighbor/node.tag/prefix-list/in/node.def
index 22d33d7d..ba696ea4 100644
--- a/templates/protocols/bgp/node.tag/neighbor/node.tag/prefix-list/in/node.def
+++ b/templates/protocols/bgp/node.tag/neighbor/node.tag/prefix-list/in/node.def
@@ -1,6 +1,6 @@
type: txt
help: "Filter incoming updates"
-syntax: ($(../../peer-group/@) != "") || ($(../../remote-as/@) != ""); "remote-as or peer-group must be specified first"
+syntax: ($(../../peer-group) != "") || ($(../../remote-as) != ""); "remote-as or peer-group must be specified first"
commit: exec "/opt/vyatta/sbin/vyatta_quagga_utils.pl --exists \"policy prefix-list $(@)\" ";"prefix-list $(@) doesn't exist"
create: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../@)\" \
-c \"neighbor $(../../@) prefix-list $(@) in\" "
diff --git a/templates/protocols/bgp/node.tag/neighbor/node.tag/prefix-list/node.def b/templates/protocols/bgp/node.tag/neighbor/node.tag/prefix-list/node.def
index 3b9cbb14..2188730d 100644
--- a/templates/protocols/bgp/node.tag/neighbor/node.tag/prefix-list/node.def
+++ b/templates/protocols/bgp/node.tag/neighbor/node.tag/prefix-list/node.def
@@ -1,2 +1,2 @@
help: "Filter updates to/from this neighbor"
-syntax: ($(../peer-group/@) != "") || ($(../remote-as/@) != ""); "remote-as or peer-group must be specified first"
+syntax: ($(../peer-group) != "") || ($(../remote-as) != ""); "remote-as or peer-group must be specified first"