From 8a52926b5a3c78248c158776f2455b58e0f4b87a Mon Sep 17 00:00:00 2001 From: John Southworth Date: Thu, 1 Dec 2011 16:47:01 -0800 Subject: Add vrrp interface description --- .../vrrp/vrrp-group/node.tag/interface/description/node.def | 5 +++++ .../vrrp/vrrp-group/node.tag/interface/description/node.def | 6 ++++++ .../vrrp/vrrp-group/node.tag/interface/description/node.def | 5 +++++ 3 files changed, 16 insertions(+) create mode 100644 templates/interfaces/bonding/node.tag/vrrp/vrrp-group/node.tag/interface/description/node.def create mode 100644 templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/interface/description/node.def create mode 100644 templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/interface/description/node.def (limited to 'templates') 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" -- cgit v1.2.3