summaryrefslogtreecommitdiff
path: root/templates/protocols/bgp
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-06-02 10:06:42 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-07-09 16:50:06 -0700
commit753d4aaca9b0e0ffe21b0c02106ce8bfe03b803a (patch)
tree98fea8e842cadd9bc4ad76b3575efb270078d57d /templates/protocols/bgp
parent6f0d0febd81bd05f5d4a70e1663e26a7dfd38c35 (diff)
downloadvyatta-cfg-quagga-753d4aaca9b0e0ffe21b0c02106ce8bfe03b803a.tar.gz
vyatta-cfg-quagga-753d4aaca9b0e0ffe21b0c02106ce8bfe03b803a.zip
Convert update: on mulitnodes to create:
This is what CLI Primer says is supposed to work. (cherry picked from commit 4cb6efba141b1e54ee78077410dd027a8fcf1a39)
Diffstat (limited to 'templates/protocols/bgp')
-rw-r--r--templates/protocols/bgp/node.def2
-rw-r--r--templates/protocols/bgp/node.tag/neighbor/node.def2
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/protocols/bgp/node.def b/templates/protocols/bgp/node.def
index 074388bc..9a430834 100644
--- a/templates/protocols/bgp/node.def
+++ b/templates/protocols/bgp/node.def
@@ -7,7 +7,7 @@ syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 4294967294 ; \
begin: sudo /opt/vyatta/sbin/quagga-manager start bgpd
# we need to set default parameters in BGP here since we can't do it in
# startup scripts as we don't know the AS number at that point
-update: vyatta-vtysh -c "configure terminal" -c "router bgp $VAR(@)" \
+create: vyatta-vtysh -c "configure terminal" -c "router bgp $VAR(@)" \
-c "bgp network import-check"
delete: vyatta-vtysh -c "configure terminal" -c "no router bgp $VAR(@)"
diff --git a/templates/protocols/bgp/node.tag/neighbor/node.def b/templates/protocols/bgp/node.tag/neighbor/node.def
index b6278e28..8e464dba 100644
--- a/templates/protocols/bgp/node.tag/neighbor/node.def
+++ b/templates/protocols/bgp/node.tag/neighbor/node.def
@@ -8,7 +8,7 @@ comp_help:
syntax:expression: exec "/opt/vyatta/sbin/vyatta-bgp.pl \
--check-peer-name $VAR(@)"
-update: if /opt/vyatta/sbin/vyatta-bgp.pl --check-if-peer-group \
+create: if /opt/vyatta/sbin/vyatta-bgp.pl --check-if-peer-group \
--peergroup $VAR(@); then
vyatta-vtysh -c "configure terminal" \
-c "router bgp $VAR(../@)" \