From 793c2707b976f3efff886dcae283b54466402f9b Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Sat, 16 Sep 2017 20:04:28 +0200 Subject: [LLDP] T393: add constraints and error messages to the LLDP interface definition. --- interface-definitions/lldp.xml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) 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 @@ 128 Script + ca-type must between 0-128 + + + Civic address value for ca-type [REQUIRED] + ca-value must be less than 256 characters + + ^[A-Za-z0-9\ \-\_\.\,]{0,255}$ + @@ -147,6 +155,10 @@ <AA> Two letter ISO 3166 country code + country-code must be 2 characters + + ^[a-zA-Z]{2}$ + @@ -163,6 +175,10 @@ [+-]<meters> Altitude in meters + Altitude should be a positive or negative number + + + @@ -180,6 +196,13 @@ MLLW NAD83/MLLW + + WGS84 NAD83 MLLW + + Datum should be WGS84, NAD83, or MLLW + + ^(WGS84|NAD83|MLLW)$ + @@ -189,6 +212,10 @@ <latitude> Latitude (example "37.524449N") + Latitude should be a number followed by S or N + + ^(\d+)(\.\d+)?[nNsS]$ + @@ -198,6 +225,10 @@ <longitude> Longitude (example "122.267255W") + Longiture should be a number followed by E or W + + ^(\d+)(\.\d+)?[eEwW]$ + -- cgit v1.2.3