From 0294f753e1b788b115ec75e660ef10212a0128b2 Mon Sep 17 00:00:00 2001 From: Stig Thormodsrud Date: Sat, 28 Feb 2009 13:36:44 -0800 Subject: Fix 3778: vrrp should allow prefix to be included with the virtual-address --- .../vif/node.tag/vrrp/vrrp-group/node.tag/virtual-address/node.def | 7 ++++++- .../node.tag/vrrp/vrrp-group/node.tag/virtual-address/node.def | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) (limited to 'templates') diff --git a/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/virtual-address/node.def b/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/virtual-address/node.def index 64b7b21e..363240cd 100644 --- a/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/virtual-address/node.def +++ b/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/virtual-address/node.def @@ -1,6 +1,11 @@ multi: -type: ipv4 +type: txt help: Set virtual address +syntax:expression: exec "/opt/vyatta/sbin/vyatta-keepalived.pl \ + --vrrp-action='check-vip' --vip='$VAR(@)' "\ + ; "Invalid virtual-address [$VAR(@)] for vrrp-group $VAR(../@)" + comp_help: possible completions: Virtual IP address (up to 20 per group) + Virtual IP address with prefix (up to 20 per group) diff --git a/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/virtual-address/node.def b/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/virtual-address/node.def index 64b7b21e..363240cd 100644 --- a/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/virtual-address/node.def +++ b/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/virtual-address/node.def @@ -1,6 +1,11 @@ multi: -type: ipv4 +type: txt help: Set virtual address +syntax:expression: exec "/opt/vyatta/sbin/vyatta-keepalived.pl \ + --vrrp-action='check-vip' --vip='$VAR(@)' "\ + ; "Invalid virtual-address [$VAR(@)] for vrrp-group $VAR(../@)" + comp_help: possible completions: Virtual IP address (up to 20 per group) + Virtual IP address with prefix (up to 20 per group) -- cgit v1.2.3