PCE OTN layer support init
[transportpce.git] / ordmodels / network / src / main / yang / transportpce-network-topology@2020-01-29.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-29 {
24         description "Add transportpce augmentation to manage otn-link-type in otn-topology";
25     }
26     revision 2020-01-23 {
27         description "Add transportpce augmentation for otn-topology";
28     }
29     revision 2019-06-25 {
30         description "Initial revision";
31     }
32
33     typedef otn-link-type {
34       type enumeration {
35         enum "OTU4" {
36           value 0;
37         }
38         enum "ODU4" {
39           value 1;
40         }
41         enum "ODTU4" {
42           value 2;
43         }
44         enum "ODU2e" {
45           value 3;
46         }
47         enum "ODU0" {
48           value 4;
49         }
50       }
51     }
52
53     augment "/nd:networks/nd:network/nd:node/nwt:termination-point" {
54         when "../../nd:network-types/cnet:openroadm-common-network/openroadm-topology or ../../nd:network-types/cnet:openroadm-common-network/otn-topology";
55         description
56           "Defines associated logical-connection-point for XPDR port.";
57         leaf associated-connection-map-port {
58           when
59             "../cnet:tp-type = 'XPONDER-CLIENT' or ../cnet:tp-type = 'XPONDER-NETWORK'";
60           type string;
61           description
62             "The xpdr port connectable regarding the device connection-map";
63         }
64     }
65
66     augment "/nd:networks/nd:network/nwt:link" {
67         when "../nd:network-types/cnet:openroadm-common-network/otn-topology";
68         description
69           "Defines more accurate otn link types to differentiate otn links in otn-topology";
70         leaf otn-link-type {
71           when
72             "../cnet:link-type = 'OTN-LINK'";
73           type otn-link-type;
74           description
75               "type of otn link, to help link management inside transportpce";
76           }
77         }
78     }
79 }