Device renderer support for 100G on 7.1 models
[transportpce.git] / ordmodels / network / src / main / yang / transportpce-topology@2021-05-11.yang
1 module transportpce-topology {
2     yang-version 1.1;
3     namespace "http://transportpce/topology";
4     prefix "transportpce-topology";
5
6     import ietf-network {
7         prefix nd;
8         revision-date 2018-02-26;
9       }
10     import ietf-network-topology {
11         prefix nwt;
12         revision-date 2018-02-26;
13       }
14     import org-openroadm-common-network {
15         prefix cnet;
16         revision-date 2020-05-29;
17       }
18
19     organization
20         "TransportPCE team";
21     contact
22         "TransportPCE team";
23
24     revision 2021-05-11 {
25         description "Update otn-link-type enum for higher rates";
26     }
27     revision 2020-10-19 {
28         description "Update to 7.1.0 Openroadm network and common models";
29     }
30     revision 2020-01-29 {
31         description "Add transportpce augmentation to manage otn-link-type in otn-topology";
32     }
33     revision 2020-01-23 {
34         description "Add transportpce augmentation for otn-topology";
35     }
36     revision 2019-06-25 {
37         description "Initial revision";
38     }
39
40     typedef otn-link-type {
41       type enumeration {
42         enum "OTU4" {
43           value 0;
44         }
45         enum "ODU4" {
46           value 1;
47         }
48         enum "ODTU4" {
49           value 2;
50         }
51         enum "ODU2e" {
52           value 3;
53         }
54         enum "ODU0" {
55           value 4;
56         }
57         enum "OTUC4" {
58           value 5;
59         }
60         enum "ODUC4" {
61           value 6;
62         }
63       }
64     }
65
66     augment "/nd:networks/nd:network/nd:node/nwt:termination-point" {
67         when "../../nd:network-types/cnet:openroadm-common-network/openroadm-topology or ../../nd:network-types/cnet:openroadm-common-network/otn-topology";
68         description
69           "Defines associated logical-connection-point for XPDR port.";
70         leaf associated-connection-map-port {
71           when
72             "../cnet:tp-type = 'XPONDER-CLIENT' or ../cnet:tp-type = 'XPONDER-NETWORK'";
73           type string;
74           description
75             "The xpdr port connectable regarding the device connection-map";
76         }
77     }
78
79     augment "/nd:networks/nd:network/nwt:link" {
80         when "../nd:network-types/cnet:openroadm-common-network/otn-topology";
81         description
82           "Defines more accurate otn link types to differentiate otn links in otn-topology";
83         leaf otn-link-type {
84           when
85             "../cnet:link-type = 'OTN-LINK'";
86           type otn-link-type;
87           description
88               "type of otn link, to help link management inside transportpce";
89           }
90     }
91 }