blob: 19d9841c9072b32a6c6625c78ac02fd8a7f77483 [file] [log] [blame]
surya-huaweie4e90ed2017-05-02 18:08:24 +05301module ietf-otn-topology {
2 yang-version 1;
3
4 namespace "urn:ietf:params:xml:ns:yang:ietf-otn-topology";
5 prefix "otntopo";
6
7 import ietf-network {
8 prefix "nd";
9 }
10
11 import ietf-network-topology {
12 prefix "lnk";
13 }
14
15 import ietf-te-topology {
16 prefix "tet";
17 }
18
19
20 revision 2017-04-25 {
21 description
22 "Revision 0.3";
23 reference
24 "draft-zhang-ccamp-l1-topo-yang-07.txt";
25 }
26
27
28 grouping otn-link-attributes {
29
30 list available-odu-info{
31 key "priority";
32 max-elements "8";
33
34 leaf priority {
35 type uint8 {
36 range "0..7";
37 }
38 }
39
40 list odulist {
41 key "odu-type";
42
43 leaf odu-type {
44 type string;
45 }
46
47 leaf number {
48 type uint16;
49 }
50 }
51 }
52
53 leaf distance {
54 type uint32;
55 }
56 }
57
58 augment "/nd:networks/nd:network/lnk:link/tet:te/tet:config" {
59 uses otn-link-attributes;
60 }
61 }