summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-01-08 15:15:43 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-01-08 15:15:43 -0800
commit3405299bbdcb8cffead58fce7d0a3f02b070456e (patch)
treef0ac31d8a5a7315cb715af4194dd7d15f9e9d06d /templates
parent74089da19bb90d6aaefd80488ad9ddd0391490dc (diff)
downloadvyatta-cfg-system-3405299bbdcb8cffead58fce7d0a3f02b070456e.tar.gz
vyatta-cfg-system-3405299bbdcb8cffead58fce7d0a3f02b070456e.zip
disable bridge node should be same as disable ethernet
There is no reason that disable of ethernet and disable of bridge have conflicting syntax.
Diffstat (limited to 'templates')
-rw-r--r--templates/interfaces/bridge/node.tag/disable/node.def20
1 files changed, 6 insertions, 14 deletions
diff --git a/templates/interfaces/bridge/node.tag/disable/node.def b/templates/interfaces/bridge/node.tag/disable/node.def
index f4495164..3f37a6d6 100644
--- a/templates/interfaces/bridge/node.tag/disable/node.def
+++ b/templates/interfaces/bridge/node.tag/disable/node.def
@@ -1,19 +1,11 @@
-type: bool
help: Disable the bridge interface
-default: false
-update: if [ x$VAR(@) == xtrue ]; then
- /etc/netplug/linkdown.d/dhclient $VAR(../@)
- if ! sudo ip link set $VAR(../@) down 2>/dev/null; then
+update: /etc/netplug/linkdown.d/dhclient $VAR(../@)
+ if ! sudo ip link set $VAR(../@) down 2>/dev/null; then
echo "Error disabling dev $VAR(../@)"
/etc/netplug/linkup.d/dhclient $VAR(../@)
exit 1
- fi
- else
- if ! sudo ip link set $VAR(../@) up; then
- echo "Error enabling dev $VAR(../@)"
- exit 1
- fi
fi
-comp_help: possible completions:
- true Disable the bridge interface
- false Enable the bridge interface (default)
+delete: if ! sudo ip link set $VAR(../@) up; then
+ echo "Error enabling dev $VAR(../@)"
+ exit 1
+ fi