summaryrefslogtreecommitdiff
path: root/templates/protocols/ospf
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2007-11-29 14:40:11 -0800
committerStig Thormodsrud <stig@vyatta.com>2007-11-29 14:40:11 -0800
commit92ba301596308ba21ed9ea1e7dcc78cd2a6509c1 (patch)
tree186b1211036e2f889dfa9bbfc550079becba52b6 /templates/protocols/ospf
parent2446b9e66e42bc75d11e0e4502ff7edf34525a8b (diff)
downloadvyatta-cfg-quagga-92ba301596308ba21ed9ea1e7dcc78cd2a6509c1.tar.gz
vyatta-cfg-quagga-92ba301596308ba21ed9ea1e7dcc78cd2a6509c1.zip
Fix delete protocol ospf passive-interface.
Diffstat (limited to 'templates/protocols/ospf')
-rw-r--r--templates/protocols/ospf/passive-interface/node.def7
1 files changed, 7 insertions, 0 deletions
diff --git a/templates/protocols/ospf/passive-interface/node.def b/templates/protocols/ospf/passive-interface/node.def
index e78229ea..10c5928b 100644
--- a/templates/protocols/ospf/passive-interface/node.def
+++ b/templates/protocols/ospf/passive-interface/node.def
@@ -13,6 +13,13 @@ update: "if [ x$(x) == xdefault ]; then \
/usr/bin/vtysh -c \"configure terminal\" -c \"router ospf\" \
-c \"passive-interface $(@)\"; \
fi; "
+delete: "if [ x$(x) == xdefault ]; then \
+ /usr/bin/vtysh -c \"configure terminal\" -c \"router ospf\" \
+ -c \"no passive-interface default\"; \
+ else \
+ /usr/bin/vtysh -c \"configure terminal\" -c \"router ospf\" \
+ -c \"no passive-interface $(@)\"; \
+ fi; "
#allowed: local -a array;
# array=( /sys/class/net/{eth,vmnet}* ) ;
# echo -n ${array[@]##*/}