summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-11-22 15:53:36 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-11-22 15:53:36 -0800
commitf3503c4909b9ca8d383e49259b762824cda3fd41 (patch)
tree3b0d3e35fc5f6cee96511164accd1409665e9792
parentf7dbc0b9746896b5fc3435d8eb38f2c8c52a73bd (diff)
downloadvyatta-cfg-quagga-f3503c4909b9ca8d383e49259b762824cda3fd41.tar.gz
vyatta-cfg-quagga-f3503c4909b9ca8d383e49259b762824cda3fd41.zip
Don't allow zero for VRRP priority or VRID
Bug 5673 Enfore restriction on values per RFC 3678
-rw-r--r--templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.def2
-rw-r--r--templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/priority/node.def2
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.def b/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.def
index 9c6a8b17..0458fd0d 100644
--- a/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.def
+++ b/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.def
@@ -1,7 +1,7 @@
tag:
type: u32
help: VRRP group number
-syntax:expression: $VAR(@) >= 0 && $VAR(@) <= 255; "VRRP group must be between 1-255"
+syntax:expression: $VAR(@) > 0 && $VAR(@) <= 255; "VRRP group must be between 1-255"
val_help: u32:1-255; VRRP group number
commit:expression: $VAR(virtual-address/) != ""; "Must define the virtual-address for vrrp-group $VAR(@)"
diff --git a/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/priority/node.def b/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/priority/node.def
index 920c59d1..88684dd8 100644
--- a/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/priority/node.def
+++ b/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/priority/node.def
@@ -1,4 +1,4 @@
type: u32
-syntax:expression: $VAR(@) >= 0 &&$VAR(@) <= 255; "priority must be between 1-255"
+syntax:expression: $VAR(@) > 0 &&$VAR(@) <= 255; "priority must be between 1-255"
help: Priority
val_help: u32:1-255; Priority