summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2011-12-02 11:19:55 -0800
committerJohn Southworth <john.southworth@vyatta.com>2011-12-02 11:19:55 -0800
commit26fdb2eea39174dc202bd1e63ce45ae3153f6d76 (patch)
tree47cff6c3f2e480079c82d410c73ffe007235d350
parent622697e7a4d376a3f3e39c1fe29d47a8add678c0 (diff)
downloadvyatta-cfg-system-26fdb2eea39174dc202bd1e63ce45ae3153f6d76.tar.gz
vyatta-cfg-system-26fdb2eea39174dc202bd1e63ce45ae3153f6d76.zip
Add vrrp interface description for bonding vif
-rw-r--r--templates/interfaces/bonding/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/interface/description/node.def6
1 files changed, 6 insertions, 0 deletions
diff --git a/templates/interfaces/bonding/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/interface/description/node.def b/templates/interfaces/bonding/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/interface/description/node.def
new file mode 100644
index 00000000..7d3ab379
--- /dev/null
+++ b/templates/interfaces/bonding/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/interface/description/node.def
@@ -0,0 +1,6 @@
+priority: 820 # after vrrp
+type: txt
+help: Description for this interface
+update: sudo sh -c "echo \"$VAR(@)\" >/sys/class/net/$VAR(../../../../../@).$VAR(../../../../@)v$VAR(../../@)/ifalias"
+delete: sudo sh -c "echo '' >/sys/class/net/$VAR(../../../../../@).$VAR(../../../../@)v$VAR(../../@)/ifalias"
+