summaryrefslogtreecommitdiff
path: root/templates/protocols/static/interface-route
diff options
context:
space:
mode:
Diffstat (limited to 'templates/protocols/static/interface-route')
-rw-r--r--templates/protocols/static/interface-route/node.tag/next-hop-interface/node.def4
1 files changed, 1 insertions, 3 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 c22c9305..cd739481 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
end: if [ ${COMMIT_ACTION} = 'DELETE' ]; then