diff options
author | Stig Thormodsrud <stig@vyatta.com> | 2009-03-24 17:31:06 -0700 |
---|---|---|
committer | Stig Thormodsrud <stig@vyatta.com> | 2009-03-24 17:31:06 -0700 |
commit | 5bc08f276717e16dc73ea76c17473682ecce8de1 (patch) | |
tree | d8282205e2dd4e487f50f8b05cb28c51891a9d50 /templates | |
parent | 7ba08034c65ed8696db8a84d65a5c65ae4dfd450 (diff) | |
parent | b13ba43f2d8abaf5445a76954893695cd54061eb (diff) | |
download | vyatta-cfg-quagga-5bc08f276717e16dc73ea76c17473682ecce8de1.tar.gz vyatta-cfg-quagga-5bc08f276717e16dc73ea76c17473682ecce8de1.zip |
Merge branch 'jenner' of http://git.vyatta.com/vyatta-cfg-system into jenner
Diffstat (limited to 'templates')
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" |