diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-09-09 14:19:43 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-09-09 14:27:28 -0700 |
commit | ea5439cd08cd0f79dce8a7a885f06b5ec211eebb (patch) | |
tree | a53159594c0909ccf3178d8b02bc2a7f8f45cd7f | |
parent | a84810d27eb4bbc721c0ee326fe64589ffcf2f3c (diff) | |
download | vyatta-cfg-ea5439cd08cd0f79dce8a7a885f06b5ec211eebb.tar.gz vyatta-cfg-ea5439cd08cd0f79dce8a7a885f06b5ec211eebb.zip |
Allow empty description
Bug 4918
3 files changed, 3 insertions, 3 deletions
diff --git a/templates/interfaces/ethernet/node.tag/description/node.def b/templates/interfaces/ethernet/node.tag/description/node.def index ccec5e1..7f64c78 100644 --- a/templates/interfaces/ethernet/node.tag/description/node.def +++ b/templates/interfaces/ethernet/node.tag/description/node.def @@ -1,4 +1,4 @@ type: txt help: Set description for this interface -update: sudo ip link set $VAR(../@) alias "$VAR(@)" +update: 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/ethernet/node.tag/vif/node.tag/description/node.def b/templates/interfaces/ethernet/node.tag/vif/node.tag/description/node.def index fda2e3c..d85db27 100644 --- a/templates/interfaces/ethernet/node.tag/vif/node.tag/description/node.def +++ b/templates/interfaces/ethernet/node.tag/vif/node.tag/description/node.def @@ -1,4 +1,4 @@ type: txt help: Set description for this interface -update: sudo ip link set dev "$VAR(../../@).$VAR(../@)" alias "$VAR(@)" +update: 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/loopback/node.tag/description/node.def b/templates/interfaces/loopback/node.tag/description/node.def index ccec5e1..7f64c78 100644 --- a/templates/interfaces/loopback/node.tag/description/node.def +++ b/templates/interfaces/loopback/node.tag/description/node.def @@ -1,4 +1,4 @@ type: txt help: Set description for this interface -update: sudo ip link set $VAR(../@) alias "$VAR(@)" +update: sudo sh -c "echo \"$VAR(@)\" >/sys/class/net/$VAR(../@)/ifalias" delete: sudo sh -c "echo '' >/sys/class/net/$VAR(../@)/ifalias" |