From 92ba301596308ba21ed9ea1e7dcc78cd2a6509c1 Mon Sep 17 00:00:00 2001 From: Stig Thormodsrud Date: Thu, 29 Nov 2007 14:40:11 -0800 Subject: Fix delete protocol ospf passive-interface. --- templates/protocols/ospf/passive-interface/node.def | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'templates/protocols/ospf') 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[@]##*/} -- cgit v1.2.3