diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-03-03 08:23:29 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-03-03 08:23:29 -0800 |
commit | a6316a2b0f98b50b2f36bfa440b8dd432df98131 (patch) | |
tree | a6ca87ac94161cd207b99677f529e6ac3e42aa6f /templates | |
parent | f40cb6f6ee74b8dfe22be27307d343ed8eaec540 (diff) | |
download | vyatta-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.def | 7 |
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 |