blob: 62c0279862540dd2fdd3ba881bba377e735238d6 [file] [log] [blame]
VinodKumarS-Huawei7b1733c2016-10-25 13:44:26 +05301
2module yms-topology {
3 yang-version 1;
4 namespace urn:topo;
5 prefix topo;
6 revision 2014-01-01 {
7 description "desc";
8 reference "ref";
9 }
10 list node {
11 key "node-id";
12 leaf node-id{
13 type string;
14 }
15 leaf-list node-prop{
16 type string;
17 }
18 container termination-points{
19 leaf number-of-tp {
20 type int16;
21 }
22 list termination-point {
23 key "tp-id";
24 leaf tp-id {
25 type string;
26 }
27 }
28 }
29 choice choice1{
30 case case1a{
31 leaf leaf1a1{
32 type string;
33 }
34 leaf leaf1a2{
35 type string;
36 }
37 }
38 case case1b{
39 choice choice1b{
40 case case1bi{
41 leaf leaf1bia{
42 type string;
43 }
44 leaf leaf1bib{
45 type string;
46 }
47 }
48 case case1bii{
49 leaf leaf1biia{
50 type string;
51 }
52 leaf leaf1biib{
53 type string;
54 }
55 }
56 }
57 }
58 }
59 }
60
61 rpc set-node-limit {
62 input {
63 leaf node-limit {
64 type int16;
65 }
66 }
67 }
68
69 notification node-limit-reached {
70 leaf node-limit {
71 type int16;
72 }
73 }
74}