Code Review
/
mdsal.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
Fix derived types missing pattern restrictions
[mdsal.git]
/
binding
/
mdsal-binding-generator-impl
/
src
/
test
/
resources
/
mdsal335.yang
1
module mdsal335 {
2
namespace "mdsal335";
3
prefix "mdsal335";
4
5
typedef ipv4-address {
6
type string {
7
pattern
8
'(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}'
9
+ '([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])'
10
+ '(%[\p{N}\p{L}]+)?';
11
}
12
}
13
14
typedef ipv4-address-no-zone {
15
type mdsal335:ipv4-address {
16
pattern '[0-9\.]*';
17
}
18
}
19
}
20