2 * Copyright (c) 2015 Cable Television Laboratories, Inc. 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 INTERNAL
\r
9 // Constructed based on Adolfo's UML UNI model
\r
11 // + uniIdentifier : string
\r
12 // + physicalMedium : string = UNI Type 2 Physical Interface
\r
13 // + speed : string = Set (10M, 100M, 10M/100M, 10M/100M/1000M, 1G, 10G>
\r
14 // + mode : string = Full Duplex
\r
15 // + macLayer : string = IEEE 802.3-2005
\r
17 // + uniMtuSize : int = [uniMtuSize >= 1522]
\r
19 module cl-unimgr-mef {
\r
22 namespace "urn:opendaylight:params:xml:ns:yang:unimgr";
\r
25 import ietf-yang-types { prefix "yang"; revision-date 2013-07-15; }
\r
26 import ietf-inet-types { prefix "inet"; revision-date 2010-09-24; }
\r
27 import network-topology { prefix "topo"; revision-date 2013-10-21; }
\r
28 import yang-ext { prefix "ext"; }
\r
29 import ovsdb { prefix "ovsdb"; revision-date 2015-01-05;}
\r
31 revision "2015-10-12" {
\r
32 description "Updated revision of the unimgr model.";
\r
35 grouping service-speed {
\r
60 // represent simplification of MEF Per Uni Attributes
\r
62 leaf ovsdb-node-ref {
\r
63 type ovsdb:ovsdb-node-ref;
\r
64 description "A reference to the ovsdb node.";
\r
66 leaf physical-medium {
\r
68 default "UNI TypeFull Duplex 2 Physical Interface";
\r
71 type inet:ip-address;
\r
74 type yang:mac-address;
\r
81 default "Full Duplex";
\r
85 default "IEEE 802.3-2005";
\r
96 // Represents simplification of MEF EVC Per Uni Atrributes
\r
104 type instance-identifier;
\r
107 type inet:ip-address;
\r
116 type instance-identifier;
\r
119 type inet:ip-address;
\r
125 container ingress-bw {
\r
126 uses service-speed;
\r
128 container egress-bw {
\r
129 uses service-speed;
\r
133 augment "/topo:network-topology/topo:topology/topo:node" {
\r
134 description "Augmentation for UNI nodes under topology";
\r
135 ext:augment-identifier "uni-augmentation";
\r
139 augment "/topo:network-topology/topo:topology/topo:link" {
\r
140 description "Augmentation for EVC Link under topology";
\r
141 ext:augment-identifier "evc-augmentation";
\r