summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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