summaryrefslogtreecommitdiff
path: root/templates/protocols/bgp
diff options
context:
space:
mode:
Diffstat (limited to 'templates/protocols/bgp')
-rw-r--r--templates/protocols/bgp/node.def1
-rw-r--r--templates/protocols/bgp/node.tag/neighbor/node.def2
2 files changed, 1 insertions, 2 deletions
diff --git a/templates/protocols/bgp/node.def b/templates/protocols/bgp/node.def
index 8e21f914..074388bc 100644
--- a/templates/protocols/bgp/node.def
+++ b/templates/protocols/bgp/node.def
@@ -5,7 +5,6 @@ comp_help: \1 <1-4294967294>\tAS number
syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 4294967294 ; \
"AS number must be between 1 and 4294967294"
begin: sudo /opt/vyatta/sbin/quagga-manager start bgpd
-create: vyatta-vtysh -c "configure terminal" -c "router bgp $VAR(@)"
# 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(@)" \
diff --git a/templates/protocols/bgp/node.tag/neighbor/node.def b/templates/protocols/bgp/node.tag/neighbor/node.def
index 8e464dba..b6278e28 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(@)"
-create: if /opt/vyatta/sbin/vyatta-bgp.pl --check-if-peer-group \
+update: if /opt/vyatta/sbin/vyatta-bgp.pl --check-if-peer-group \
--peergroup $VAR(@); then
vyatta-vtysh -c "configure terminal" \
-c "router bgp $VAR(../@)" \