summaryrefslogtreecommitdiff
path: root/templates/protocols/static
diff options
context:
space:
mode:
authorBob Gilligan <gilligan@vyatta.com>2008-05-28 13:14:57 -0700
committerBob Gilligan <gilligan@vyatta.com>2008-05-28 13:14:57 -0700
commitff6c8c693d3f3e5b1702314087dfb2843448902c (patch)
tree398a70eda93d5a60cc889be52a67f71c80e5ad06 /templates/protocols/static
parentfa79751880004dd5d8b2cab1e98b1107bc14615e (diff)
downloadvyatta-cfg-quagga-ff6c8c693d3f3e5b1702314087dfb2843448902c.tar.gz
vyatta-cfg-quagga-ff6c8c693d3f3e5b1702314087dfb2843448902c.zip
Bugfix: 3019
Tighten up validity check on interface names.
Diffstat (limited to 'templates/protocols/static')
-rw-r--r--templates/protocols/static/interface-route/node.tag/next-hop-interface/node.def2
1 files changed, 1 insertions, 1 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 80526635..c83201a8 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
@@ -18,7 +18,7 @@ help: Set the next-hop interface
#
syntax:expression: exec " \
IFNAME=$VAR(@) ; \
- if [ -z \"`ip addr | grep $IFNAME `\" ]; then \
+ if [ ! -e /sys/class/net/$IFNAME ]; then \
if [ \"${IFNAME::5}\" != \"pppoa\" -a \"${IFNAME::5}\" != \"pppoe\" \
-a \"${IFNAME::3}\" != \"wan\" \
-a \"${IFNAME::2}\" != \"ml\" ]; then \