summaryrefslogtreecommitdiff
path: root/templates/protocols/bgp/node.def
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-02-19 13:37:34 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-02-19 13:37:34 -0800
commit2e3fcceeb92aad18ba5eb62fb2403ce035493d12 (patch)
treeb4956a64b4c3b7a10e8ab9396bd8a324463f8691 /templates/protocols/bgp/node.def
parentf408ceddd047d1397b8ae692060149e45abf8b33 (diff)
downloadvyatta-cfg-quagga-2e3fcceeb92aad18ba5eb62fb2403ce035493d12.tar.gz
vyatta-cfg-quagga-2e3fcceeb92aad18ba5eb62fb2403ce035493d12.zip
force BGP on
Diffstat (limited to 'templates/protocols/bgp/node.def')
-rw-r--r--templates/protocols/bgp/node.def4
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/protocols/bgp/node.def b/templates/protocols/bgp/node.def
index 1c56426e..803362db 100644
--- a/templates/protocols/bgp/node.def
+++ b/templates/protocols/bgp/node.def
@@ -5,7 +5,9 @@ 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(@)"
+update: 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(@)" \
-c "bgp network import-check"
delete: vyatta-vtysh -c "configure terminal" -c "no router bgp $VAR(@)"