Code Review
/
mdsal.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
Remove executable bits
[mdsal.git]
/
binding
/
mdsal-binding-test-model
/
src
/
main
/
yang
/
test-pattern.yang
1
module test-pattern {
2
yang-version 1.1;
3
namespace "urn:test:pattern";
4
prefix pattern;
5
revision 2017-01-01;
6
7
container cont {
8
leaf test {
9
type string {
10
pattern '[a-zA-Z_][a-zA-Z0-9\-_.]*';
11
pattern '[xX][mM][lL].*';
12
}
13
}
14
15
leaf test2 {
16
type string {
17
pattern '[0-9]*';
18
}
19
}
20
21
22
leaf-list test3 {
23
type string {
24
pattern '[a-zA-Z_]*';
25
pattern '[xX][mM][lL].*' {
26
modifier invert-match;
27
}
28
}
29
}
30
31
leaf-list test4 {
32
type string {
33
pattern '[a-z]*';
34
}
35
}
36
}
37
}