diff options
author | slioch <slioch@eng-140.vyatta.com> | 2009-02-19 16:57:33 -0800 |
---|---|---|
committer | slioch <slioch@eng-140.vyatta.com> | 2009-02-19 16:57:33 -0800 |
commit | a5f6345aa9876560a1ccbfca1313fdd05e7ea752 (patch) | |
tree | 8cb04510ee549927a6097785bb7a14b068e25148 /templates/protocols/bgp | |
parent | 2e3fcceeb92aad18ba5eb62fb2403ce035493d12 (diff) | |
download | vyatta-cfg-quagga-a5f6345aa9876560a1ccbfca1313fdd05e7ea752.tar.gz vyatta-cfg-quagga-a5f6345aa9876560a1ccbfca1313fdd05e7ea752.zip |
changes to support bgp start/stop
Diffstat (limited to 'templates/protocols/bgp')
-rw-r--r-- | templates/protocols/bgp/disable/node.def | 12 | ||||
-rw-r--r-- | templates/protocols/bgp/node.def | 3 |
2 files changed, 2 insertions, 13 deletions
diff --git a/templates/protocols/bgp/disable/node.def b/templates/protocols/bgp/disable/node.def deleted file mode 100644 index 2795453f..00000000 --- a/templates/protocols/bgp/disable/node.def +++ /dev/null @@ -1,12 +0,0 @@ -type: bool -help: Disable BGP daemon -default: false -update: if [ $VAR(@) == "true" ]; - then sudo ${vyatta_sbindir}/vyatta-protocol stop bgpd - else sudo ${vyatta_sbindir}/vyatta-protocol start bgpd - fi -possible completions: - true Stop BGP daemon - false Start BGP daemon - -allowed: echo "true false" diff --git a/templates/protocols/bgp/node.def b/templates/protocols/bgp/node.def index 803362db..b2586eb0 100644 --- a/templates/protocols/bgp/node.def +++ b/templates/protocols/bgp/node.def @@ -4,11 +4,12 @@ help: Configure Border Gateway Protocol (BGP) parameters 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: sudo /opt/vyatta/sbin/quagga-manager start bgpd 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(@)" +delete: sudo /opt/vyatta/sbin/quagga-manager stop bgpd end: sudo /opt/vyatta/sbin/quagga-manager update |