summaryrefslogtreecommitdiff
path: root/templates/protocols/ripng/distribute-list
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-03-02 14:27:53 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-03-02 14:27:53 -0800
commit148604dc849b1536b648f25b8649b3e13602a609 (patch)
tree2da82446dc78264114e5e975f78386597e2c6592 /templates/protocols/ripng/distribute-list
parenta4f5dbef77793280e1dc9a5bb068d71b1067ea8f (diff)
downloadvyatta-cfg-quagga-148604dc849b1536b648f25b8649b3e13602a609.tar.gz
vyatta-cfg-quagga-148604dc849b1536b648f25b8649b3e13602a609.zip
RIPNG: allow any interface type
Routing protocols should show all interfaces in allowed list.
Diffstat (limited to 'templates/protocols/ripng/distribute-list')
-rw-r--r--templates/protocols/ripng/distribute-list/interface/node.def6
1 files changed, 1 insertions, 5 deletions
diff --git a/templates/protocols/ripng/distribute-list/interface/node.def b/templates/protocols/ripng/distribute-list/interface/node.def
index 9219eda6..2c29dde8 100644
--- a/templates/protocols/ripng/distribute-list/interface/node.def
+++ b/templates/protocols/ripng/distribute-list/interface/node.def
@@ -1,13 +1,9 @@
tag:
type: txt
help: Set to apply filtering to an interface
-
+allowed: ${vyatta_sbindir}/vyatta-interfaces.pl --show all
syntax:expression: exec "\
if [ -z \"`ip addr | grep $VAR(@) `\" ]; then \
echo ethernet interface $VAR(@) doesn\\'t exist on this system ; \
exit 1 ; \
fi ; "
-
-allowed: local -a array;
- array=( /sys/class/net/{eth,vmnet}* ) ;
- echo -n ${array[@]##*/}