-module portmapping {
- yang-version 1;
- namespace "urn:opendaylight:params:xml:ns:yang:portmapping";
- prefix "portmapping";
-
- revision "2017-02-28" {
- description "Initial revision of port mapping model";
- }
- container network{
- list nodes{
- key node-id;
- leaf node-id{
- type string;
- description
- "Unique identifier for node in the network";
- }
- list mapping{
- description
- "Mapping for Physical circuit pack/port/parent interfaces
- corresponding to each logical connection point present in the node.";
- key logical-connection-point;
- leaf logical-connection-point{
- type string;
- }
- leaf supporting-circuit-pack-name{
- type string;
- description
- "Circuit pack where the logical connection point is located";
- }
- leaf supporting-port{
- type string;
- description
- "Port where the logical connection point is located";
- }
- leaf supporting-oms{
- type string;
- description
- "OMS interface provisioned on the port";
- }
- leaf supporting-ots{
- type string;
- description
- "OTS interface provisioned on the port";
- }
- }
- }
- }
-}
+module portmapping {\r
+ yang-version 1;\r
+ namespace "urn:opendaylight:params:xml:ns:yang:portmapping";\r
+ prefix "portmapping";\r
+\r
+ import org-openroadm-common-types {\r
+ prefix org-openroadm-common-types;\r
+ }\r
+\r
+ organization\r
+ "transportPCE";\r
+ contact\r
+ "transportPCE committers - ODL";\r
+ description\r
+ "YANG definitions of RPCs supported by OLM.\r
+ Copyright © 2017 AT&T and others. All rights reserved.\r
+ authors: Dhruv Bhardwaj ( db929a@att.com )\r
+ Shweta Vachhani ( sv111y@att.com )";\r
+\r
+ revision "2017-2-28" {\r
+ description "Initial revision of port mapping model";\r
+ }\r
+ container network{\r
+ list nodes{\r
+ key node-id;\r
+ leaf node-id{\r
+ type string;\r
+ description\r
+ "Unique identifier for node in the network";\r
+ }\r
+ leaf node-type{\r
+ type org-openroadm-common-types:node-types;\r
+ description\r
+ "Identifier for node-type e.g Roadm, xponder";\r
+ }\r
+ list mapping{\r
+ description\r
+ "Mapping for Physical circuit pack/port/parent interfaces\r
+ corresponding to each logical connection point present in the node.";\r
+ key logical-connection-point;\r
+ leaf logical-connection-point{\r
+ type string;\r
+ }\r
+ leaf supporting-circuit-pack-name{\r
+ type string;\r
+ description\r
+ "Circuit pack where the logical connection point is located";\r
+ }\r
+ leaf supporting-port{\r
+ type string;\r
+ description\r
+ "Port where the logical connection point is located";\r
+ }\r
+ leaf supporting-oms{\r
+ type string;\r
+ description\r
+ "OMS interface provisioned on the port";\r
+ }\r
+ leaf supporting-ots{\r
+ type string;\r
+ description\r
+ "OTS interface provisioned on the port";\r
+ }\r
+ }\r
+ }\r
+ }\r
+}
\ No newline at end of file