summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKim Hagen <khagen@multi-development.com>2014-05-13 13:04:44 +0200
committerKim Hagen <khagen@multi-development.com>2014-05-13 13:04:44 +0200
commitf94c99aac7945b61c9670f5c16654ee7b3a0ecda (patch)
tree1fd5ed12fb2afb0cac05cdf765063948cb15b969
parent661f0f796572335c5c1a693056acb4dd4041ffc1 (diff)
downloadvyatta-cfg-quagga-f94c99aac7945b61c9670f5c16654ee7b3a0ecda.tar.gz
vyatta-cfg-quagga-f94c99aac7945b61c9670f5c16654ee7b3a0ecda.zip
Bug #186 - RIP passive-interface "default" missing from config template
-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
+