2 * Copyright (c) 2015 Huawei, Inc. and others. All rights reserved.
\r
4 * This program and the accompanying materials are made available under the
\r
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
\r
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
\r
9 module nemo-engine-common {
\r
12 namespace "urn:opendaylight:params:xml:ns:yang:nemo:engine:common";
\r
13 prefix "nemo-engine-common";
\r
15 revision "2015-10-10" {
\r
17 "Initial revision.";
\r
20 // *********************
\r
22 // *********************
\r
25 "A generic string name type. Must start with a letter";
\r
27 pattern '[a-zA-Z]([a-zA-Z0-9\-_.])*';
\r
32 // UUID type from ietf-yang-types@2013-07-15
\r
35 pattern '[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-'
\r
36 + '[0-9a-fA-F]{4}-[0-9a-fA-F]{12}';
\r
39 "A Universally Unique IDentifier in the string representation
\r
40 defined in RFC 4122. The canonical representation uses
\r
41 lower case characters.
\r
43 The following is an example of a UUID in string
\r
44 representation: f81d4fae-7dec-11d0-a765-00a0c91e6bf6";
\r
46 "RFC 4122: A Universally Unique IDentifier (UUID) URN
\r
52 "A globally unique identifier.";
\r
56 // *********************
\r
58 // *********************
\r
59 typedef physical-port-id {
\r
61 "A unique ID for a physical port.";
\r
65 typedef physical-node-id {
\r
67 "A unique ID for a physical node.";
\r
71 typedef physical-link-id {
\r
73 "A unique ID for a physical link.";
\r
77 typedef physical-host-id {
\r
79 "A unique ID for a physical host.";
\r
83 typedef physical-path-id {
\r
85 "A unique ID for a physical path.";
\r
89 typedef virtual-port-id {
\r
91 "A unique ID for a virtual port.";
\r
95 typedef virtual-node-id {
\r
97 "A unique ID for a virtual node.";
\r
101 typedef virtual-link-id {
\r
103 "A unique ID for a virtual link.";
\r
107 typedef virtual-path-id {
\r
109 "A unique ID for a virtual path.";
\r
113 typedef virtual-network-id {
\r
115 "A unique ID for a virtual network.";
\r
119 typedef virtual-resource-id {
\r
121 "A unique ID for the virtual resource.";
\r
125 typedef virtual-resource-entity-id {
\r
127 "A unique ID for a virtual resource entity.";
\r
131 typedef physical-resource-id {
\r
133 "A unique ID for the physical resource.";
\r
137 typedef physical-resource-entity-id {
\r
139 "A unique ID for a physical resource entity.";
\r
143 // *********************
\r
145 // *********************
\r
146 typedef attribute-name {
\r
148 "A name for a physical port or node attribute.";
\r
152 typedef physical-host-name {
\r
154 "A name for a physical host.";
\r