summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-03-03 08:23:29 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-03-03 08:23:29 -0800
commita6316a2b0f98b50b2f36bfa440b8dd432df98131 (patch)
treea6ca87ac94161cd207b99677f529e6ac3e42aa6f /templates
parentf40cb6f6ee74b8dfe22be27307d343ed8eaec540 (diff)
downloadvyatta-cfg-a6316a2b0f98b50b2f36bfa440b8dd432df98131.tar.gz
vyatta-cfg-a6316a2b0f98b50b2f36bfa440b8dd432df98131.zip
Use vyatta-interfaces to generate allowed list
Diffstat (limited to 'templates')
-rw-r--r--templates/interfaces/ethernet/node.def7
1 files changed, 1 insertions, 6 deletions
diff --git a/templates/interfaces/ethernet/node.def b/templates/interfaces/ethernet/node.def
index 1886458..55d0a85 100644
--- a/templates/interfaces/ethernet/node.def
+++ b/templates/interfaces/ethernet/node.def
@@ -8,12 +8,7 @@ syntax:expression: exec " \
echo \"Ethernet interface does not exist: $VAR(@)\"; \
exit 1; \
fi"
-
+allowed: /opt/vyatt/sbin/vyatta-interfaces.pl --show=ethernet
update: sudo ip link set "$VAR(@)" up
/opt/vyatta/sbin/vyatta-link-detect $VAR(@) on
delete: sudo ip link set "$VAR(@)" down
-allowed: for dev in /sys/class/net/eth*;
- do if [[ -d $dev && -L $dev/device ]]
- then echo -n ${dev##*/} " "
- fi
- done