diff options
Diffstat (limited to 'templates/protocols/static')
-rw-r--r-- | templates/protocols/static/interface-route/node.tag/next-hop-interface/node.def | 4 | ||||
-rw-r--r-- | templates/protocols/static/interface-route6/node.tag/next-hop-interface/node.def | 4 |
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 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 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 a7e1744a..052e1a2f 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 end: if [ ${COMMIT_ACTION} = 'DELETE' ]; then vyatta-vtysh -c "configure terminal" \ |