Code Review
/
yangtools.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
YANGTOOLS-706: Split out yang-parser-rfc7950
[yangtools.git]
/
yang
/
yang-parser-rfc7950
/
src
/
test
/
resources
/
rfc7950
/
bug6878
/
foo10-invalid.yang
1
module foo {
2
namespace foo;
3
prefix foo;
4
5
revision 2017-02-10;
6
7
list interface {
8
key "name";
9
leaf name {
10
type string;
11
}
12
13
leaf enabled {
14
type boolean;
15
}
16
}
17
18
leaf outgoing-interface {
19
type leafref {
20
path "/interface/name";
21
}
22
23
must "count(/interface[re-match(name, 'eth0\.\d+')]) = 3";
24
}
25
}