Code Review
/
controller.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
3ecdc0a3cef157f345e6ffcc12414d75c8093a84
[controller.git]
/
opendaylight
/
sal
/
yang-prototype
/
code-generator
/
samples
/
modeling-sample
/
src
/
main
/
yang
/
sample.yang
1
module sample {
2
yang-version 1;
3
namespace "sample";
4
prefix "s";
5
6
revision 2013-06-13 {
7
description "Initial demo";
8
}
9
10
11
12
// Simple Type definition
13
14
typedef foo-name {
15
type string;
16
}
17
18
// Storage / data structure
19
20
container topologies {
21
list topology {
22
leaf foo-name {
23
type string;
24
}
25
}
26
}
27
28
29
// Notification / Event
30
31
notification packet-in {
32
leaf node {
33
type string;
34
}
35
leaf port {
36
type uint16;
37
}
38
leaf content {
39
type binary;
40
}
41
}
42
43
// RPC
44
45
rpc packet-out {
46
input {
47
leaf node {
48
type string;
49
}
50
leaf port {
51
type uint16;
52
}
53
leaf content {
54
type binary;
55
}
56
}
57
output {
58
59
}
60
}
61
62
}