summaryrefslogtreecommitdiff
path: root/templates/protocols
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-03-02 14:28:49 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-03-02 14:28:49 -0800
commit92ba249bb7546d93ee447af7cd76360f93db15ab (patch)
tree2a3805578642b04629c6128f900ec4655276317f /templates/protocols
parent148604dc849b1536b648f25b8649b3e13602a609 (diff)
downloadvyatta-cfg-quagga-92ba249bb7546d93ee447af7cd76360f93db15ab.tar.gz
vyatta-cfg-quagga-92ba249bb7546d93ee447af7cd76360f93db15ab.zip
Static: show all interfaces in allowed list
Any valid interface is allowed.
Diffstat (limited to 'templates/protocols')
-rw-r--r--templates/protocols/static/interface-route/node.tag/next-hop-interface/node.def4
-rw-r--r--templates/protocols/static/interface-route6/node.tag/next-hop-interface/node.def4
2 files changed, 2 insertions, 6 deletions
diff --git a/templates/protocols/static/interface-route/node.tag/next-hop-interface/node.def b/templates/protocols/static/interface-route/node.tag/next-hop-interface/node.def
index 7582362d..e9f4f764 100644
--- a/templates/protocols/static/interface-route/node.tag/next-hop-interface/node.def
+++ b/templates/protocols/static/interface-route/node.tag/next-hop-interface/node.def
@@ -3,9 +3,7 @@ type: txt
help: Set the next-hop interface
# show all current interface
# but syntax accepts any interface since it may exist later (ppp etc)
-allowed: local -a array
- array=( /sys/class/net/* )
- echo -n ${array[@]##*/}
+allowed: ${vyatta_sbindir}/vyatta-interfaces.pl --show all
delete: touch /tmp/static.$PPID
diff --git a/templates/protocols/static/interface-route6/node.tag/next-hop-interface/node.def b/templates/protocols/static/interface-route6/node.tag/next-hop-interface/node.def
index 5321c619..2d5eb281 100644
--- a/templates/protocols/static/interface-route6/node.tag/next-hop-interface/node.def
+++ b/templates/protocols/static/interface-route6/node.tag/next-hop-interface/node.def
@@ -3,9 +3,7 @@ type: txt
help: Set the next-hop interface
# show all current interface
# but syntax accepts any interface since it may exist later (ppp etc)
-allowed: local -a array
- array=( /sys/class/net/* )
- echo -n ${array[@]##*/}
+allowed: ${vyatta_sbindir}/vyatta-interfaces.pl --show all
delete: touch /tmp/static.$PPID