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