summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2011-12-01 16:47:01 -0800
committerJohn Southworth <john.southworth@vyatta.com>2011-12-01 16:51:09 -0800
commit8a52926b5a3c78248c158776f2455b58e0f4b87a (patch)
tree3f0f2de9e7caf0b13bf750c60a29a7bc3d73b3fa /templates
parentf27e23f90810bb0c23d0d4e0f7d093b110477a14 (diff)
downloadvyatta-cfg-quagga-8a52926b5a3c78248c158776f2455b58e0f4b87a.tar.gz
vyatta-cfg-quagga-8a52926b5a3c78248c158776f2455b58e0f4b87a.zip
Add vrrp interface description
Diffstat (limited to 'templates')
-rw-r--r--templates/interfaces/bonding/node.tag/vrrp/vrrp-group/node.tag/interface/description/node.def5
-rw-r--r--templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/interface/description/node.def6
-rw-r--r--templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/interface/description/node.def5
3 files changed, 16 insertions, 0 deletions
diff --git a/templates/interfaces/bonding/node.tag/vrrp/vrrp-group/node.tag/interface/description/node.def b/templates/interfaces/bonding/node.tag/vrrp/vrrp-group/node.tag/interface/description/node.def
new file mode 100644
index 00000000..75400c58
--- /dev/null
+++ b/templates/interfaces/bonding/node.tag/vrrp/vrrp-group/node.tag/interface/description/node.def
@@ -0,0 +1,5 @@
+priority: 820 # after vrrp
+type: txt
+help: Description for this interface
+update: sudo sh -c "echo \"$VAR(@)\" >/sys/class/net/$VAR(../../../../@)v$VAR(../../@)/ifalias"
+delete: sudo sh -c "echo '' >/sys/class/net/$VAR(../../../../@)v$VAR(../../@)/ifalias"
diff --git a/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/interface/description/node.def b/templates/interfaces/ethernet/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/ethernet/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"
+
diff --git a/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/interface/description/node.def b/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/interface/description/node.def
new file mode 100644
index 00000000..75400c58
--- /dev/null
+++ b/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/interface/description/node.def
@@ -0,0 +1,5 @@
+priority: 820 # after vrrp
+type: txt
+help: Description for this interface
+update: sudo sh -c "echo \"$VAR(@)\" >/sys/class/net/$VAR(../../../../@)v$VAR(../../@)/ifalias"
+delete: sudo sh -c "echo '' >/sys/class/net/$VAR(../../../../@)v$VAR(../../@)/ifalias"