summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/protocols/rip/passive-interface/node.def7
1 files changed, 5 insertions, 2 deletions
diff --git a/templates/protocols/rip/passive-interface/node.def b/templates/protocols/rip/passive-interface/node.def
index af95f815..c642bc1f 100644
--- a/templates/protocols/rip/passive-interface/node.def
+++ b/templates/protocols/rip/passive-interface/node.def
@@ -1,6 +1,8 @@
multi:
type: txt
-help: Suppress routing updates on an interface
+comp_help:default Suppress routing updates on all interfaces by default\n\
+ethx Suppress routing updates on ethx\n\
+lo Suppress routing updates on lo\n
syntax:expression: exec " \
if [ -z \"`ip addr | grep $VAR(@) `\" ] && [ x$VAR(@) != xdefault ]; then \
echo ethernet interface $VAR(@) doesn\\'t exist on this system ; \
@@ -18,4 +20,5 @@ delete: if [ x$VAR(x) == xdefault ]
else vtysh -c "configure terminal" -c "router rip" \
-c "no passive-interface $VAR(@)"
fi
-allowed: ${vyatta_sbindir}/vyatta-interfaces.pl --show all
+allowed: echo "default" && ${vyatta_sbindir}/vyatta-interfaces.pl --show all
+