a28ec0e9a742ef23f7964e0ec6597f8b83cecf82
[transportpce.git] / ordmodels / network / src / main / yang / transportpce-network-topology@2020-01-23.yang
1 module transportpce-topology {
2     namespace "http://transportpce/topology";
3     prefix "tpce-topo";
4
5     import ietf-network {
6         prefix nd;
7         revision-date 2018-02-26;
8       }
9     import ietf-network-topology {
10         prefix nwt;
11         revision-date 2018-02-26;
12       }
13     import org-openroadm-common-network {
14         prefix cnet;
15         revision-date 2018-11-30;
16       }
17
18     organization
19         "TransportPCE team";
20     contact
21         "TransportPCE team";
22
23     revision 2020-01-23 {
24         description "Add transportpce augmentation for otn-topology";
25     }
26
27     revision 2019-06-25 {
28         description "Initial revision";
29     }
30
31     augment "/nd:networks/nd:network/nd:node/nwt:termination-point" {
32         when "../../nd:network-types/cnet:openroadm-common-network/openroadm-topology or ../../nd:network-types/cnet:openroadm-common-network/otn-topology";
33         description
34           "Defines associated logical-connection-point for XPDR port.";
35         leaf associated-connection-map-port {
36           when
37             "../cnet:tp-type = 'XPONDER-CLIENT' or ../cnet:tp-type = 'XPONDER-NETWORK'";
38           type string;
39           description
40             "The xpdr port connectable regarding the device connection-map";
41         }
42     }
43 }