summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-04-01 17:36:18 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-04-01 17:36:18 -0700
commit2d9121d9e81ff56e6d511d8df25e433cc74ee087 (patch)
tree7e107c4faa31184c2b130839dc553dd704330464 /scripts
parent5670867cd76ecc432374755c877270f6ff8a4e33 (diff)
downloadvyatta-cfg-quagga-2d9121d9e81ff56e6d511d8df25e433cc74ee087.tar.gz
vyatta-cfg-quagga-2d9121d9e81ff56e6d511d8df25e433cc74ee087.zip
Handle ipv6 daemons
Need to do special case IPV6 daemon restart
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/quagga-manager19
1 files changed, 14 insertions, 5 deletions
diff --git a/scripts/quagga-manager b/scripts/quagga-manager
index e7b5d5ae..fc1326f0 100755
--- a/scripts/quagga-manager
+++ b/scripts/quagga-manager
@@ -7,7 +7,7 @@
#echo $* | logger -p local7.debug -t quagga-manager
usage() {
- echo "Usage: $0 {check|start|stop|restart} {bgpd|ospfd|ripd|ripngd}"
+ echo "Usage: $0 {check|start|stop|restart} {bgpd|ospfd|ripd|ospf6d|ripngd}"
exit 1
}
@@ -74,7 +74,15 @@ stop() {
reload_config() {
local daemon=$1
- local proto=${daemon/%d/}
+ local proto
+
+ # handle exception...
+ case $daemon in
+ bgpd|ospfd|ripd|ripngd|isisd) proto=${daemon/%d/};;
+ ospf6d) proto="ospfv3";;
+ *) echo "Unknown daemon $daemon"; exit 1;;
+ esac
+
local vyatta_cfg=/opt/vyatta/config/active
local path=$vyatta_cfg/protocols/$proto
@@ -94,10 +102,11 @@ reload_config() {
# Erase portion of active configuration for that protocol
rm -fr $path
- # special case for interface configuration
+ # special case for interface, remove parameters force reload
case $proto in
- rip|ospf)
- find $vyatta_cfg/interfaces -type d -name $daemon -exec rm -fr '{}' \; ;;
+ rip|ospf|ripng|ospfv3)
+ find $vyatta_cfg/interfaces -type d -name $proto \
+ -exec rm -fr '{}' \; ;;
esac
# Reload causing configuration to activate - implies commit