Bump versions by x.y.(z+1)
[unimgr.git] / presto-api / src / main / yang / mef-nrp-types.yang
1 /*
2  * Copyright (c) 2016 Cisco Systems, Inc. All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html INTERNAL
7  */
8 module mef-nrp-types {
9   namespace "urn:mef:nrp-types";
10   prefix nrp-types;
11
12   revision 2016-06-30 {
13   }
14
15   grouping G_NRP_SourceMacAddressLimit {
16     leaf enabled {
17       type boolean;
18     }
19     leaf limit {
20       type NRP_NaturalNumber;
21     }
22     leaf timeInterval {
23       type NRP_NaturalNumber;
24     }
25   }
26   grouping G_NRP_VlanId {
27     leaf vid {
28       type NRP_PositiveInteger;
29     }
30   }
31   typedef NRP_EvcEndPointRole {
32     type enumeration {
33       enum ROOT;
34       enum LEAF;
35     }
36   }
37   typedef NRP_Identifier45 {
38     type string;
39   }
40   typedef NRP_L2cpAddressSet {
41     type enumeration {
42       enum CTA;
43       enum CTB;
44       enum CTB2;
45     }
46   }
47   typedef NRP_PhysicalLayer {
48     type enumeration {
49       enum 10BASE2;
50       enum 10BASE5;
51       enum 10BASE_F;
52       enum 10BASE_FB;
53       enum 10BASE_FL;
54       enum 10BASE_FP;
55       enum 10BASE_T;
56       enum 10BASE_TE;
57       enum 10BROAD36;
58       enum 10PASS_TS;
59       enum 100BASE_BX10;
60       enum 100BASE_FX;
61       enum 100BASE_LX10;
62       enum 100BASE_T;
63       enum 100BASE_T2;
64       enum 100BASE_T4;
65       enum 100BASE_TX;
66       enum 100BASE_X;
67       enum 1000BASE_BX10;
68       enum 1000BASE_CX;
69       enum 1000BASE_KX;
70       enum 1000BASE_LX;
71       enum 1000BASE_LX10;
72       enum 1000BASE_PX10;
73       enum 1000BASE_PX20;
74       enum 1000BASE_SX;
75       enum 1000BASE_T;
76       enum 1000BASE_X;
77       enum 10GBASE_CX4;
78       enum 10GBASE_E;
79       enum 10GBASE_ER;
80       enum 10GBASE_EW;
81       enum 10GBASE_KR;
82       enum 10GBASE_KX4;
83       enum 10GBASE_L;
84       enum 10GBASE_LR;
85       enum 10GBASE_LRM;
86       enum 10GBASE_LW;
87       enum 10GBASE_LX4;
88       enum 10GBASE_PR;
89       enum 10GBASE_PRX;
90       enum 10GBASE_R;
91       enum 10GBASE_S;
92       enum 10GBASE_SR;
93       enum 10GBASE_SW;
94       enum 10GBASE_T;
95       enum 10GBASE_W;
96       enum 10GBASE_X;
97       enum 100GBASE_R;
98       enum 100GBASE_CR10;
99       enum 100GBASE_ER4;
100       enum 100GBASE_LR4;
101       enum 100GBASE_SR10;
102       enum 40GBASE_R;
103       enum 40GBASE_CR4;
104       enum 40GBASE__FR;
105       enum 40GBASE_KR4;
106       enum 40GBASE_LR4;
107       enum 40GBASE_SR4;
108       enum 1BASE5;
109       enum 2BASE_TL;
110       enum 1G_EPON;
111       enum 10G_EPON;
112       enum 10_1G_EPON;
113       enum 10_10G_EPON;
114       enum NONE;
115     }
116   }
117   typedef NRP_NaturalNumber {
118     type uint32 {
119       range "1..max";
120     }
121   }
122   grouping G_NRP_SyncModePerLink {
123     leaf linkId {
124       type string;
125     }
126     leaf syncModeEnabled {
127       type boolean;
128     }
129   }
130   typedef NRP_ProtocolFrameType {
131     type enumeration {
132       enum ETHERTYPE;
133       enum LLC_ADDRESS;
134       enum OTHER;
135     }
136   }
137   typedef NRP_InterfaceResiliency {
138     type enumeration {
139       enum NONE;
140       enum 2_LINK_ACTIVE_STANDBY;
141       enum ALL_ACTIVE;
142       enum OTHER;
143     }
144   }
145   grouping G_NRP_ConversationIdToAggrgationLinkMap {
146     leaf conversationId {
147       type NRP_NaturalNumber;
148     }
149     leaf linkId {
150       type NRP_NaturalNumber;
151     }
152   }
153   grouping G_NRP_L2cpPeering {
154     leaf destinationMacAddress {
155       type string;
156       description "The destination address determines the intended recipient device for the frame.";
157     }
158     leaf protocolType {
159       type NRP_ProtocolFrameType;
160       description "Protocol Identifier is either an LLC Address or an Ethertype, and it could have subtypes. The list specifies only the L2CP Frames that
161 are to be Peered. Any L2CP Frame that is not Peered will either be Discarded or Passed
162 as a result of the flow charts and requirements specified in MEF 45, Section 9.";
163     }
164     leaf linkId {
165       type string;
166       description "Identifies the physical link identifier for protocols (e.g. LLDP, ESMC) that can operate over the individual physical links.
167 If no link identifier is specified then the list entry will apply to all physical links. 
168 MEF 45, Section 8.2";
169     }
170     leaf protocolId {
171       type string;
172     }
173   }
174   typedef NRP_ColorMode {
175     type enumeration {
176       enum COLOR_AWARE;
177       enum COLOR_BLIND;
178     }
179   }
180   typedef NRP_PositiveInteger {
181     type uint32 {
182       range "1..max";
183     }
184   }
185   typedef NRP_VlanTag {
186     type enumeration {
187       enum S_TAG;
188       enum C_TAG;
189     }
190   }
191   typedef NRP_IpVersion {
192     type enumeration {
193       enum IPV4;
194       enum IPV6;
195       enum IPV4_AND_IPV6;
196     }
197   }
198   typedef NRP_FrameColor {
199     type enumeration {
200       enum GREEN;
201       enum YELLOW;
202     }
203   }
204   typedef NRP_PcpOrDiscard {
205     type enumeration {
206       enum DISCARD;
207       enum 0;
208       enum 1;
209       enum 2;
210       enum 3;
211       enum 4;
212       enum 5;
213       enum 6;
214       enum 7;
215     }
216   }
217   typedef NRP_DeiOrDiscard {
218     type enumeration {
219       enum DISCARD;
220       enum 0;
221       enum 1;
222     }
223   }
224   grouping G_NRP_AggLinkDepth {
225     container nrp_vlanId {
226       config true;
227       uses G_NRP_VlanId;
228     }
229     leaf nrp_linkNumber {
230       type NRP_NaturalNumber;
231     }
232   }
233   typedef NRP_ConnectionType {
234     type enumeration {
235       enum POINT_TO_POINT;
236       enum MULTIPOINT;
237       enum ROOTED_MULTIPOINT;
238     }
239   }
240   typedef NRP_ServiceFrameDelivery {
241     type enumeration {
242       enum CONDITIONALLY;
243       enum UNCONDITIONALLY;
244     }
245   }
246   typedef NRP_EndPointRole {
247     type enumeration {
248       enum ROOT;
249       enum LEAF;
250       enum TRUNK;
251     }
252   }
253   typedef NRP_MepDirection {
254     type enumeration {
255       enum DOWN;
256       enum UP;
257     }
258   }
259   grouping G_NRP_MepLevelAndDirection {
260     leaf nrp_level {
261       type NRP_NaturalNumber;
262     }
263     leaf nrp_direction {
264       type NRP_MepDirection;
265     }
266     leaf nrp_megId {
267       type string;
268     }
269   }
270 }