3 namespace "test:yang:union";
17 typedef ipv4-address {
20 '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}'
21 + '([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])'
22 + '(%[\p{N}\p{L}]+)?';
26 typedef ipv6-address {
28 pattern '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}'
29 + '((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|'
30 + '(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\.){3}'
31 + '(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))'
32 + '(%[\p{N}\p{L}]+)?';
33 pattern '(([^:]+:){6}(([^:]+:[^:]+)|(.*\..*)))|'
34 + '((([^:]+:)*[^:]+)?::(([^:]+:)*[^:]+)?)'
41 pattern '((([a-zA-Z0-9_]([a-zA-Z0-9\-_]){0,61})?[a-zA-Z0-9]\.)*'
42 + '([a-zA-Z0-9_]([a-zA-Z0-9\-_]){0,61})?[a-zA-Z0-9]\.?)'