summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2009-03-24 17:31:06 -0700
committerStig Thormodsrud <stig@vyatta.com>2009-03-24 17:31:06 -0700
commit5bc08f276717e16dc73ea76c17473682ecce8de1 (patch)
treed8282205e2dd4e487f50f8b05cb28c51891a9d50 /templates
parent7ba08034c65ed8696db8a84d65a5c65ae4dfd450 (diff)
parentb13ba43f2d8abaf5445a76954893695cd54061eb (diff)
downloadvyatta-cfg-system-5bc08f276717e16dc73ea76c17473682ecce8de1.tar.gz
vyatta-cfg-system-5bc08f276717e16dc73ea76c17473682ecce8de1.zip
Merge branch 'jenner' of http://git.vyatta.com/vyatta-cfg-system into jenner
Diffstat (limited to 'templates')
-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"