From dc12636770037b7ac043075e722dd3110a7364d3 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Wed, 3 Jan 2024 17:20:13 +0100 Subject: xml: T5738: add constraint building block with alphanumeric, hypen, underscore and dot (cherry picked from commit 82b4b2db8fda51df172210f470e5825b91e81de4) --- interface-definitions/include/accel-ppp/client-ip-pool.xml.i | 4 ++-- interface-definitions/include/accel-ppp/default-pool.xml.i | 2 +- .../include/bgp/afi-route-map-export-import.xml.i | 4 ++-- .../include/bgp/neighbor-afi-ipv4-ipv6-common.xml.i | 8 ++++---- .../include/constraint/alpha-numeric-hyphen-underscore-dot.xml.i | 3 +++ interface-definitions/include/route-map.xml.i | 2 +- 6 files changed, 13 insertions(+), 10 deletions(-) create mode 100644 interface-definitions/include/constraint/alpha-numeric-hyphen-underscore-dot.xml.i (limited to 'interface-definitions/include') diff --git a/interface-definitions/include/accel-ppp/client-ip-pool.xml.i b/interface-definitions/include/accel-ppp/client-ip-pool.xml.i index dff574e6c..71fe69f8d 100644 --- a/interface-definitions/include/accel-ppp/client-ip-pool.xml.i +++ b/interface-definitions/include/accel-ppp/client-ip-pool.xml.i @@ -7,7 +7,7 @@ Name of IP pool - [-_a-zA-Z0-9.]+ + #include @@ -37,7 +37,7 @@ Name of IP pool - [-_a-zA-Z0-9.]+ + #include diff --git a/interface-definitions/include/accel-ppp/default-pool.xml.i b/interface-definitions/include/accel-ppp/default-pool.xml.i index 832594c12..a08b066b1 100644 --- a/interface-definitions/include/accel-ppp/default-pool.xml.i +++ b/interface-definitions/include/accel-ppp/default-pool.xml.i @@ -7,7 +7,7 @@ Default IP pool - [-_a-zA-Z0-9.]+ + #include diff --git a/interface-definitions/include/bgp/afi-route-map-export-import.xml.i b/interface-definitions/include/bgp/afi-route-map-export-import.xml.i index c218937c8..388991241 100644 --- a/interface-definitions/include/bgp/afi-route-map-export-import.xml.i +++ b/interface-definitions/include/bgp/afi-route-map-export-import.xml.i @@ -10,7 +10,7 @@ Route map name - [-_a-zA-Z0-9.]+ + #include Name of route-map can only contain alpha-numeric letters, hyphen and underscores @@ -26,7 +26,7 @@ Route map name - [-_a-zA-Z0-9.]+ + #include Name of route-map can only contain alpha-numeric letters, hyphen and underscores diff --git a/interface-definitions/include/bgp/neighbor-afi-ipv4-ipv6-common.xml.i b/interface-definitions/include/bgp/neighbor-afi-ipv4-ipv6-common.xml.i index 9ec513da9..c8ad68700 100644 --- a/interface-definitions/include/bgp/neighbor-afi-ipv4-ipv6-common.xml.i +++ b/interface-definitions/include/bgp/neighbor-afi-ipv4-ipv6-common.xml.i @@ -28,7 +28,7 @@ Route map name - [-_a-zA-Z0-9.]+ + #include Name of route-map can only contain alpha-numeric letters, hyphen and underscores @@ -44,7 +44,7 @@ Route map name - [-_a-zA-Z0-9.]+ + #include Name of route-map can only contain alpha-numeric letters, hyphen and underscores @@ -60,7 +60,7 @@ Route map name - [-_a-zA-Z0-9.]+ + #include Name of route-map can only contain alpha-numeric letters, hyphen and underscores @@ -185,7 +185,7 @@ Route map name - [-_a-zA-Z0-9.]+ + #include Name of route-map can only contain alpha-numeric letters, hyphen and underscores diff --git a/interface-definitions/include/constraint/alpha-numeric-hyphen-underscore-dot.xml.i b/interface-definitions/include/constraint/alpha-numeric-hyphen-underscore-dot.xml.i new file mode 100644 index 000000000..7aeb85260 --- /dev/null +++ b/interface-definitions/include/constraint/alpha-numeric-hyphen-underscore-dot.xml.i @@ -0,0 +1,3 @@ + +[-_a-zA-Z0-9.]+ + diff --git a/interface-definitions/include/route-map.xml.i b/interface-definitions/include/route-map.xml.i index 019868373..e49c388d6 100644 --- a/interface-definitions/include/route-map.xml.i +++ b/interface-definitions/include/route-map.xml.i @@ -10,7 +10,7 @@ Route map name - [-_a-zA-Z0-9.]+ + #include Name of route-map can only contain alpha-numeric letters, hyphen and underscores -- cgit v1.2.3