summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-03-23 12:27:34 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-03-23 12:27:34 -0700
commit695af32fda30fed0cc0c39e44c39fab98615eb0b (patch)
tree46b7f1d319d4c08b2cabbe0f88bcaf9d1f9a2354
parentbaa73fde5b395163b9df7a1a22320dac8c636281 (diff)
parent71be1922653a66274d02ce79fe4a2ef0a197b5aa (diff)
downloadvyatta-cfg-quagga-695af32fda30fed0cc0c39e44c39fab98615eb0b.tar.gz
vyatta-cfg-quagga-695af32fda30fed0cc0c39e44c39fab98615eb0b.zip
Merge branch 'jenner' of 192.168.100.1:git/vyatta-cfg-system into jenner
-rw-r--r--templates/interfaces/bonding/node.tag/description/node.def2
-rw-r--r--templates/interfaces/bonding/node.tag/vif/node.tag/description/node.def2
-rw-r--r--templates/interfaces/bridge/node.tag/description/node.def4
-rw-r--r--templates/interfaces/tunnel/node.tag/description/node.def4
4 files changed, 10 insertions, 2 deletions
diff --git a/templates/interfaces/bonding/node.tag/description/node.def b/templates/interfaces/bonding/node.tag/description/node.def
index aeb40f0b..76140377 100644
--- a/templates/interfaces/bonding/node.tag/description/node.def
+++ b/templates/interfaces/bonding/node.tag/description/node.def
@@ -1,2 +1,4 @@
type: txt
help: Set description for this interface
+create: sudo sh -c "echo $VAR(@) >/sys/class/net/$VAR(../@)/ifalias"
+delete: sudo sh -c "echo '' >/sys/class/net/$VAR(../@)/ifalias"
diff --git a/templates/interfaces/bonding/node.tag/vif/node.tag/description/node.def b/templates/interfaces/bonding/node.tag/vif/node.tag/description/node.def
index aeb40f0b..49a72afe 100644
--- a/templates/interfaces/bonding/node.tag/vif/node.tag/description/node.def
+++ b/templates/interfaces/bonding/node.tag/vif/node.tag/description/node.def
@@ -1,2 +1,4 @@
type: txt
help: Set description for this interface
+create: sudo sh -c "echo $VAR(@) >/sys/class/net/$VAR(../../@).$VAR(../@)/ifalias"
+delete: sudo sh -c "echo '' >/sys/class/net/$VAR(../../@).$VAR(../@)/ifalias"
diff --git a/templates/interfaces/bridge/node.tag/description/node.def b/templates/interfaces/bridge/node.tag/description/node.def
index 50250a24..76140377 100644
--- a/templates/interfaces/bridge/node.tag/description/node.def
+++ b/templates/interfaces/bridge/node.tag/description/node.def
@@ -1,2 +1,4 @@
type: txt
-help: Set a description of the interface
+help: Set description for this interface
+create: sudo sh -c "echo $VAR(@) >/sys/class/net/$VAR(../@)/ifalias"
+delete: sudo sh -c "echo '' >/sys/class/net/$VAR(../@)/ifalias"
diff --git a/templates/interfaces/tunnel/node.tag/description/node.def b/templates/interfaces/tunnel/node.tag/description/node.def
index b53ae684..76140377 100644
--- a/templates/interfaces/tunnel/node.tag/description/node.def
+++ b/templates/interfaces/tunnel/node.tag/description/node.def
@@ -1,2 +1,4 @@
type: txt
-help: Set description of this tunnel interface
+help: Set description for this interface
+create: sudo sh -c "echo $VAR(@) >/sys/class/net/$VAR(../@)/ifalias"
+delete: sudo sh -c "echo '' >/sys/class/net/$VAR(../@)/ifalias"