blob: 983785120faa67711ed320860951cccb0785203b [file] [log] [blame]
Vidyashree Ramaa5ba6562017-03-08 11:23:28 +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 choice choice2 {
61 case case2a {
62 leaf leaf2a1 {
63 type string;
64 }
65 leaf leaf2a2 {
66 type string;
67 }
68 }
69 case case2b {
70 choice choice3b {
71 case case2bi {
72 leaf leaf2bia {
73 type string;
74 }
75 leaf leaf2bib {
76 type string;
77 }
78 }
79 case case3bii {
80 leaf leaf3biia {
81 type string;
82 }
83 leaf leaf3biib {
84 type string;
85 }
86 }
87 }
88 }
89 }
90}