From 82b4b2db8fda51df172210f470e5825b91e81de4 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 --- 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 +- interface-definitions/pki.xml.in | 9 +++++++++ interface-definitions/policy.xml.in | 2 +- interface-definitions/service_dhcp-server.xml.in | 6 +++--- interface-definitions/service_dhcpv6-server.xml.in | 6 +++--- 10 files changed, 29 insertions(+), 17 deletions(-) create mode 100644 interface-definitions/include/constraint/alpha-numeric-hyphen-underscore-dot.xml.i (limited to 'interface-definitions') 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 diff --git a/interface-definitions/pki.xml.in b/interface-definitions/pki.xml.in index 3449819be..097c541ac 100644 --- a/interface-definitions/pki.xml.in +++ b/interface-definitions/pki.xml.in @@ -9,6 +9,9 @@ Certificate Authority + + #include + @@ -64,6 +67,9 @@ Certificate + + #include + @@ -109,6 +115,9 @@ Diffie-Hellman parameters + + #include + diff --git a/interface-definitions/policy.xml.in b/interface-definitions/policy.xml.in index 0d2ed9746..0d82cd3f8 100644 --- a/interface-definitions/policy.xml.in +++ b/interface-definitions/policy.xml.in @@ -476,7 +476,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/service_dhcp-server.xml.in b/interface-definitions/service_dhcp-server.xml.in index e35d845f1..8e13f9372 100644 --- a/interface-definitions/service_dhcp-server.xml.in +++ b/interface-definitions/service_dhcp-server.xml.in @@ -38,7 +38,7 @@ Peer name used to identify connection - [-_a-zA-Z0-9.]+ + #include Invalid failover peer name. May only contain letters, numbers and .-_ @@ -78,7 +78,7 @@ Name of DHCP shared network - [-_a-zA-Z0-9.]+ + #include Invalid shared network name. May only contain letters, numbers and .-_ @@ -251,7 +251,7 @@ DHCP lease range - [-_a-zA-Z0-9.]+ + #include Invalid range name, may only be alphanumeric, dot and hyphen diff --git a/interface-definitions/service_dhcpv6-server.xml.in b/interface-definitions/service_dhcpv6-server.xml.in index 102c164a6..6f7f3c1da 100644 --- a/interface-definitions/service_dhcpv6-server.xml.in +++ b/interface-definitions/service_dhcpv6-server.xml.in @@ -34,7 +34,7 @@ DHCPv6 shared network name - [-_a-zA-Z0-9.]+ + #include Invalid DHCPv6 shared network name. May only contain letters, numbers and .-_ @@ -185,7 +185,7 @@ NIS domain name for client to use - [-_a-zA-Z0-9.]+ + #include Invalid NIS domain name @@ -207,7 +207,7 @@ NIS+ domain name for client to use - [-_a-zA-Z0-9.]+ + #include Invalid NIS+ domain name. May only contain letters, numbers and .-_ -- cgit v1.2.3