Code Review
/
yangtools.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
Adjust test suite parser update to conform with API changes
[yangtools.git]
/
yang
/
yang-parser-rfc7950
/
src
/
test
/
resources
/
rfc7950
/
bug6878
/
foo10-invalid-2.yang
1
module foo {
2
namespace foo;
3
prefix foo;
4
5
revision 2017-02-10;
6
7
list interface {
8
key "name type";
9
leaf name {
10
type string;
11
}
12
leaf type {
13
type string;
14
}
15
leaf enabled {
16
type boolean;
17
}
18
}
19
20
container mgmt-interface {
21
leaf name {
22
type leafref {
23
path "/interface/name";
24
}
25
}
26
leaf type {
27
type leafref {
28
path "/interface[name=current()/../name]/type";
29
}
30
must "deref(.)/../enabled = 'true'" {
31
error-message "The management interface cannot be disabled.";
32
}
33
}
34
}
35
}