diff options
Diffstat (limited to 'interface-definitions')
-rw-r--r-- | interface-definitions/lldp.xml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/interface-definitions/lldp.xml b/interface-definitions/lldp.xml index 193d1c00c..a0c610dfa 100644 --- a/interface-definitions/lldp.xml +++ b/interface-definitions/lldp.xml @@ -131,11 +131,19 @@ <format>128</format> <description>Script</description> </valueHelp> + <constraintErrorMessage>ca-type must between 0-128</constraintErrorMessage> + <constraint> + <validator name="numeric" argument="--range 0-128"/> + </constraint> </properties> <children> <leafNode name="ca-value"> <properties> <help>Civic address value for ca-type [REQUIRED]</help> + <constraintErrorMessage>ca-value must be less than 256 characters</constraintErrorMessage> + <constraint> + <regex>^[A-Za-z0-9\ \-\_\.\,]{0,255}$</regex> + </constraint> </properties> </leafNode> </children> @@ -147,6 +155,10 @@ <format><AA></format> <description>Two letter ISO 3166 country code</description> </valueHelp> + <constraintErrorMessage>country-code must be 2 characters</constraintErrorMessage> + <constraint> + <regex>^[a-zA-Z]{2}$</regex> + </constraint> </properties> </leafNode> </children> @@ -163,6 +175,10 @@ <format>[+-]<meters></format> <description>Altitude in meters</description> </valueHelp> + <constraintErrorMessage>Altitude should be a positive or negative number</constraintErrorMessage> + <constraint> + <validator name="numeric"/> + </constraint> </properties> </leafNode> <leafNode name="datum"> @@ -180,6 +196,13 @@ <format>MLLW</format> <description>NAD83/MLLW</description> </valueHelp> + <completionHelp> + <list>WGS84 NAD83 MLLW</list> + </completionHelp> + <constraintErrorMessage>Datum should be WGS84, NAD83, or MLLW</constraintErrorMessage> + <constraint> + <regex>^(WGS84|NAD83|MLLW)$</regex> + </constraint> </properties> </leafNode> <leafNode name="latitude"> @@ -189,6 +212,10 @@ <format><latitude></format> <description>Latitude (example "37.524449N")</description> </valueHelp> + <constraintErrorMessage>Latitude should be a number followed by S or N</constraintErrorMessage> + <constraint> + <regex>^(\d+)(\.\d+)?[nNsS]$</regex> + </constraint> </properties> </leafNode> <leafNode name="longitude"> @@ -198,6 +225,10 @@ <format><longitude></format> <description>Longitude (example "122.267255W")</description> </valueHelp> + <constraintErrorMessage>Longiture should be a number followed by E or W</constraintErrorMessage> + <constraint> + <regex>^(\d+)(\.\d+)?[eEwW]$</regex> + </constraint> </properties> </leafNode> </children> |