Device renderer support for 100G on 7.1 models
[transportpce.git] / ordmodels / network / src / main / yang / transportpce-topology@2022-01-23.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 2022-01-23 {
25         description "Update otn-link-type enum for intermediate rates (B100G)";
26     }
27     revision 2021-05-11 {
28         description "Update otn-link-type enum for higher rates";
29     }
30     revision 2020-10-19 {
31         description "Update to 7.1.0 Openroadm network and common models";
32     }
33     revision 2020-01-29 {
34         description "Add transportpce augmentation to manage otn-link-type in otn-topology";
35     }
36     revision 2020-01-23 {
37         description "Add transportpce augmentation for otn-topology";
38     }
39     revision 2019-06-25 {
40         description "Initial revision";
41     }
42
43     typedef otn-link-type {
44       type enumeration {
45         enum "OTU4" {
46           value 0;
47         }
48         enum "ODU4" {
49           value 1;
50         }
51         enum "ODTU4" {
52           value 2;
53         }
54         enum "ODU2e" {
55           value 3;
56         }
57         enum "ODU0" {
58           value 4;
59         }
60         enum "OTUC4" {
61           value 5;
62         }
63         enum "ODUC4" {
64           value 6;
65         }
66         enum "OTUC3" {
67           value 7;
68         }
69         enum "ODUC3" {
70           value 8;
71         }
72         enum "OTUC2" {
73           value 9;
74         }
75         enum "ODUC2" {
76           value 10;
77         }
78       }
79     }
80
81     augment "/nd:networks/nd:network/nd:node/nwt:termination-point" {
82         when "../../nd:network-types/cnet:openroadm-common-network/openroadm-topology or ../../nd:network-types/cnet:openroadm-common-network/otn-topology";
83         description
84           "Defines associated logical-connection-point for XPDR port.";
85         leaf associated-connection-map-port {
86           when
87             "../cnet:tp-type = 'XPONDER-CLIENT' or ../cnet:tp-type = 'XPONDER-NETWORK'";
88           type string;
89           description
90             "The xpdr port connectable regarding the device connection-map";
91         }
92     }
93
94     augment "/nd:networks/nd:network/nwt:link" {
95         when "../nd:network-types/cnet:openroadm-common-network/otn-topology";
96         description
97           "Defines more accurate otn link types to differentiate otn links in otn-topology";
98         leaf otn-link-type {
99           when
100             "../cnet:link-type = 'OTN-LINK'";
101           type otn-link-type;
102           description
103               "type of otn link, to help link management inside transportpce";
104           }
105     }
106 }