diff options
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[@]##*/} |