diff options
author | Stig Thormodsrud <stig@vyatta.com> | 2007-11-29 14:40:11 -0800 |
---|---|---|
committer | Stig Thormodsrud <stig@vyatta.com> | 2007-11-29 14:40:11 -0800 |
commit | 92ba301596308ba21ed9ea1e7dcc78cd2a6509c1 (patch) | |
tree | 186b1211036e2f889dfa9bbfc550079becba52b6 /templates | |
parent | 2446b9e66e42bc75d11e0e4502ff7edf34525a8b (diff) | |
download | vyatta-cfg-quagga-92ba301596308ba21ed9ea1e7dcc78cd2a6509c1.tar.gz vyatta-cfg-quagga-92ba301596308ba21ed9ea1e7dcc78cd2a6509c1.zip |
Fix delete protocol ospf passive-interface.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/protocols/ospf/passive-interface/node.def | 7 |
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[@]##*/} |