@@ -81,11 +81,124 @@ The string will be validated against the below IPv6 CIDR address regex pattern.
81
81
82
82
^(([a-fA-F0-9]{1,4}|):){1,7}([a-fA-F0-9]{1,4}|:)/(32|36|40|44|48|52|56|60|64|128)$
83
83
84
+ **Example **
85
+
86
+ .. code-block :: yaml
87
+
88
+ system :
89
+ ip_address :
90
+ js_kind : { name: "ipv6_cidr" }
91
+
92
+ js_kind: domain
93
+ ******************
94
+
95
+ This type is used to validate a string against a domain name.
96
+ The string will be validated against the below domain name regex pattern.
97
+
98
+ .. code-block :: text
99
+
100
+ ^([a-zA-Z0-9-]{1,63}\\.)+[a-zA-Z]{2,63}$
101
+
102
+ **Example **
103
+
104
+ .. code-block :: yaml
105
+
106
+ system :
107
+ domain_name :
108
+ js_kind : { name: "domain" }
109
+
110
+ js_kind: email
111
+ ******************
112
+
113
+ This type is used to validate a string against an email address.
114
+ The string will be validated against the below email address regex pattern.
115
+
116
+ .. code-block :: text
117
+
118
+ ^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$
119
+
120
+ **Example **
121
+
122
+ .. code-block :: yaml
123
+
124
+ system :
125
+ email_address :
126
+ js_kind : { name: "email" }
127
+
128
+ js_kind: http_url
129
+ ******************
130
+
131
+ This type is used to validate a string against an HTTP URL.
132
+ The string will be validated against the below HTTP URL regex pattern.
133
+
134
+ .. code-block :: text
135
+
136
+ ^(https?://)?([\\da-z.-]+)\\.([a-z.]{2,6})([/\\w .-]*)*\\??([^#\\s]*)?(#.*)?$
137
+
138
+ **Example **
139
+
140
+ .. code-block :: yaml
141
+
142
+ system :
143
+ sftp_server :
144
+ js_kind : { name: "http_url" }
145
+
146
+ js_kind: uint16
147
+ ******************
148
+
149
+ This type is used to validate a string against a 16-bit unsigned integer (0 to 65535).
150
+
151
+ **Example **
152
+
153
+ .. code-block :: yaml
154
+
155
+ bgp :
156
+ as_number :
157
+ js_kind : { name: "uint16" }
158
+
159
+ js_kind: uint32
160
+ ******************
161
+
162
+ This type is used to validate a string against a 32-bit unsigned integer (0 to 4294967295).
163
+
164
+ **Example **
165
+
166
+ .. code-block :: yaml
167
+
168
+ bgp :
169
+ as_number :
170
+ js_kind : { name: "uint32" }
171
+
172
+ js_kind: uint64
173
+ ******************
174
+
175
+ This type is used to validate a string against a 64-bit unsigned integer (0 to 18446744073709551615).
176
+
177
+ **Example **
178
+
179
+ .. code-block :: yaml
180
+
181
+ interface :
182
+ statistics :
183
+ in_octets : { name: "uint64" }
184
+
185
+ js_kind: mtu
186
+ ******************
187
+
188
+ This type is used to validate a string against a maximum transmission unit (MTU) value (68 to 9192).
189
+
190
+ **Example **
191
+
192
+ .. code-block :: yaml
193
+
194
+ interface :
195
+ mtu :
196
+ js_kind : { name: "mtu" }
84
197
85
198
js_kind: mac
86
199
******************
87
200
88
- This type is used to validate a string against a MAC address.
201
+ This type is used to validate a string against a MAC address (i.e ff :ff: ff :ff: ff:ff) .
89
202
The string will be validated against the below MAC address regex pattern.
90
203
91
204
.. code-block :: text
@@ -100,20 +213,51 @@ The string will be validated against the below MAC address regex pattern.
100
213
mac_address :
101
214
js_kind : { name: "mac" }
102
215
103
- js_kind: domain
216
+ js_kind: mac_dot
104
217
******************
105
218
106
- This type is used to validate a string against a domain name .
107
- The string will be validated against the below domain name regex pattern.
219
+ This type is used to validate a string against a MAC address with dot separator (i.e ffff.ffff.ffff) .
220
+ The string will be validated against the below MAC address regex pattern.
108
221
109
222
.. code-block :: text
110
223
111
- ^([a-zA-Z0-9-]{1,63}\\.)+[a-zA-Z]{2,63} $
224
+ ^([0-9A-Fa-f]{4}[.]){2}([0-9A-Fa-f]{4}) $
112
225
113
226
**Example **
114
227
115
228
.. code-block :: yaml
116
229
117
230
system :
118
- domain_name :
119
- js_kind : { name: "domain" }
231
+ mac_address :
232
+ js_kind : { name: "mac_dot" }
233
+
234
+ js_kind: vlan
235
+ ******************
236
+
237
+ This type is used to validate a string against a VLAN ID (1 to 4094).
238
+
239
+ **Example **
240
+
241
+ .. code-block :: yaml
242
+
243
+ interface :
244
+ vlan_id :
245
+ js_kind : { name: "vlan" }
246
+
247
+ js_kind: docker_image
248
+ *********************
249
+
250
+ This type is used to validate a string against a Docker image name.
251
+ The string will be validated against the below Docker image name regex pattern.
252
+
253
+ .. code-block :: text
254
+
255
+ ^[a-z0-9]+(?:[._-][a-z0-9]+)*$
256
+
257
+ **Example **
258
+
259
+ .. code-block :: yaml
260
+
261
+ system :
262
+ docker_image :
263
+ js_kind : { name: "docker_image" }
0 commit comments