Code Review
/
mdsal.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
Binding2 - Add yang and tests
[mdsal.git]
/
binding2
/
mdsal-binding2-java-api-generator
/
src
/
test
/
resources
/
test
/
test-operation-service.yang
1
module test-operation-service {
2
yang-version 1.1;
3
namespace "urn:test:operation";
4
prefix "operation";
5
6
revision "2017-06-21" {
7
description
8
"Initial revision";
9
}
10
11
container my-cont {
12
action in-cont {
13
input {
14
leaf input-leaf {
15
type string;
16
}
17
}
18
19
output {
20
leaf output-leaf {
21
type string;
22
}
23
}
24
}
25
26
action in-cont2 {
27
input {
28
leaf input-leaf {
29
type string;
30
}
31
}
32
33
output {
34
leaf output-leaf {
35
type string;
36
}
37
}
38
}
39
}
40
41
list my-list {
42
key "name";
43
44
leaf name {
45
type string;
46
}
47
48
action in-list {
49
input {
50
leaf input-list-leaf {
51
type string;
52
}
53
}
54
55
output {
56
leaf output-list-leaf {
57
type string;
58
}
59
}
60
}
61
}
62
63
rpc my-rpc {
64
input {
65
leaf rpc-input-leaf {
66
type string;
67
}
68
}
69
70
output {
71
leaf rpc-output-leaf {
72
type string;
73
}
74
}
75
}
76
}