summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2008-04-14 11:50:31 -0700
committerStig Thormodsrud <stig@vyatta.com>2008-04-14 11:50:31 -0700
commitaefffdc38e5df3a74e3799e397fd48b17a88d1f2 (patch)
tree52d75685144110ddbce921a4503b9ee10c45fd34
parentdd4c7f784fe4eebb874fb023318910e3665e00bd (diff)
downloadvyatta-cfg-aefffdc38e5df3a74e3799e397fd48b17a88d1f2.tar.gz
vyatta-cfg-aefffdc38e5df3a74e3799e397fd48b17a88d1f2.zip
Fix 3034: Loopback interface controlled by "ethernet lo"
-rw-r--r--templates/interfaces/ethernet/node.def2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/interfaces/ethernet/node.def b/templates/interfaces/ethernet/node.def
index eee64cd..baf824b 100644
--- a/templates/interfaces/ethernet/node.def
+++ b/templates/interfaces/ethernet/node.def
@@ -2,7 +2,7 @@ tag:
type: txt
help: Ethernet interface name
syntax:expression: exec " \
- if [ -z \"`ip link | egrep -v 'eth[0-9]+[.]' | grep $VAR(@)`\" ]; then \
+ if [ -z \"`ip link | grep eth | egrep -v 'eth[0-9]+[.]' | grep $VAR(@)`\" ]; then \
echo Invalid ethernet interface [$VAR(@)]; \
exit 1 ; \
fi ; "