Bump to yangtools 2.0.12
[transportpce.git] / api / src / main / yang / transportpce-portmapping@2017-02-28.yang
1 module transportpce-portmapping {
2   yang-version 1;
3   namespace "http://org/opendaylight/transportpce/portmapping";
4   prefix "org-opendaylight-transportpce-portmapping";
5
6   import org-openroadm-common-types {
7     prefix org-openroadm-common-types;
8     revision-date 2016-10-14;
9   }
10
11  organization
12     "transportPCE";
13   contact
14     "transportPCE committers - ODL";
15   description
16     "YANG definitions of RPCs supported by OLM.
17      Copyright (c) 2017 AT&T and others.  All rights reserved.
18      authors: Dhruv Bhardwaj ( db929a@att.com )
19               Shweta Vachhani ( sv111y@att.com )";
20
21   revision "2017-02-28" {
22     description "Initial revision of port mapping model";
23   }
24   container network{
25     list nodes{
26       key node-id;
27       leaf node-id{
28         type string;
29         description
30           "Unique identifier for node in the network";
31       }
32       leaf node-type{
33         type org-openroadm-common-types:node-types;
34         description
35           "Identifier for node-type e.g Roadm, xponder";
36       }
37       list mapping{
38         description
39           "Mapping for Physical circuit pack/port/parent interfaces
40           corresponding to each logical connection point present in the node.";
41         key logical-connection-point;
42         leaf logical-connection-point{
43           type string;
44         }
45         leaf supporting-circuit-pack-name{
46           type string;
47           description
48           "Circuit pack where the logical connection point is located";
49         }
50         leaf supporting-port{
51           type string;
52           description
53           "Port where the logical connection point is located";
54         }
55         leaf supporting-oms{
56           type string;
57           description
58           "OMS interface provisioned on the port";
59         }
60         leaf supporting-ots{
61           type string;
62           description
63           "OTS interface provisioned on the port";
64         }
65       }
66       list cp-to-degree{
67         description
68           "This mapping helps locate degree number of the circuitpack that does lldp
69          protocol management";
70        key circuit-pack-name;
71        leaf circuit-pack-name{
72           type string;
73        }
74        leaf degree-number{
75             type uint32;
76        }
77        leaf interface-name{
78           type string;
79        }
80       }
81     }
82   }
83 }