blob: 92fe9666a7c246f80493399cdedf19e6de0e297e [file] [log] [blame]
Yuta HIGUCHI5aeb0fe2018-03-30 16:22:02 -07001/*
2 * Copyright 2018-present Open Networking Foundation
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.onosproject.models.openconfig;
17
18import static org.slf4j.LoggerFactory.getLogger;
19
20import java.util.Map;
21import org.apache.felix.scr.annotations.Component;
22import org.onosproject.yang.AbstractYangModelRegistrator;
23import org.onosproject.yang.gen.v1.ianaiftype.rev20170330.IanaIfType;
柯志勇10068695bdd6a9e2018-04-10 19:38:18 +080024import org.onosproject.yang.gen.v1.ietfinettypes.rev20130715.IetfInetTypes;
25import org.onosproject.yang.gen.v1.ietfinterfaces.rev20140508.IetfInterfaces;
Yuta HIGUCHI5aeb0fe2018-03-30 16:22:02 -070026import org.onosproject.yang.gen.v1.ietfyangtypes.rev20130715.IetfYangTypes;
柯志勇10068695bdd6a9e2018-04-10 19:38:18 +080027import org.onosproject.yang.gen.v1.openconfigaaa.rev20170706.OpenconfigAaa;
28import org.onosproject.yang.gen.v1.openconfigaaa.rev20170706.OpenconfigAaaRadius;
29import org.onosproject.yang.gen.v1.openconfigaaa.rev20170706.OpenconfigAaaTacacs;
30import org.onosproject.yang.gen.v1.openconfigaaatypes.rev20170706.OpenconfigAaaTypes;
31import org.onosproject.yang.gen.v1.openconfigacl.rev20170526.OpenconfigAcl;
32import org.onosproject.yang.gen.v1.openconfigaft.rev20170510.*;
33import org.onosproject.yang.gen.v1.openconfigaftnetworkinstance.rev20170113.OpenconfigAftNetworkInstance;
34import org.onosproject.yang.gen.v1.openconfigafttypes.rev20170510.OpenconfigAftTypes;
35import org.onosproject.yang.gen.v1.openconfigbgp.rev20170730.*;
36import org.onosproject.yang.gen.v1.openconfigbgppolicy.rev20170730.OpenconfigBgpPolicy;
37import org.onosproject.yang.gen.v1.openconfigbgptypes.rev20170730.OpenconfigBgpErrors;
38import org.onosproject.yang.gen.v1.openconfigbgptypes.rev20170730.OpenconfigBgpTypes;
39import org.onosproject.yang.gen.v1.openconfigcatalogtypes.rev20170501.OpenconfigCatalogTypes;
40import org.onosproject.yang.gen.v1.openconfigchannelmonitor.rev20170708.OpenconfigChannelMonitor;
41import org.onosproject.yang.gen.v1.openconfigifaggregate.rev20170714.OpenconfigIfAggregate;
42import org.onosproject.yang.gen.v1.openconfigifethernet.rev20170714.OpenconfigIfEthernet;
43import org.onosproject.yang.gen.v1.openconfigifip.rev20170714.OpenconfigIfIp;
44import org.onosproject.yang.gen.v1.openconfigifipext.rev20170714.OpenconfigIfIpExt;
45import org.onosproject.yang.gen.v1.openconfigiftypes.rev20161114.OpenconfigIfTypes;
46import org.onosproject.yang.gen.v1.openconfiginettypes.rev20170706.OpenconfigInetTypes;
Yuta HIGUCHI5aeb0fe2018-03-30 16:22:02 -070047import org.onosproject.yang.gen.v1.openconfiginterfaces.rev20170714.OpenconfigInterfaces;
柯志勇10068695bdd6a9e2018-04-10 19:38:18 +080048import org.onosproject.yang.gen.v1.openconfigisis.rev20170726.OpenconfigIsis;
49import org.onosproject.yang.gen.v1.openconfigisis.rev20170726.OpenconfigIsisLsp;
50import org.onosproject.yang.gen.v1.openconfigisis.rev20170726.OpenconfigIsisRouting;
51import org.onosproject.yang.gen.v1.openconfigisislsdbtypes.rev20170726.OpenconfigIsisLsdbTypes;
52import org.onosproject.yang.gen.v1.openconfigisispolicy.rev20170726.OpenconfigIsisPolicy;
53import org.onosproject.yang.gen.v1.openconfigisistypes.rev20170726.OpenconfigIsisTypes;
54import org.onosproject.yang.gen.v1.openconfiglacp.rev20170505.OpenconfigLacp;
55import org.onosproject.yang.gen.v1.openconfiglldp.rev20160516.OpenconfigLldp;
56import org.onosproject.yang.gen.v1.openconfiglldptypes.rev20160516.OpenconfigLldpTypes;
57import org.onosproject.yang.gen.v1.openconfiglocalrouting.rev20170515.OpenconfigLocalRouting;
58import org.onosproject.yang.gen.v1.openconfigmodulecatalog.rev20170501.OpenconfigModuleCatalog;
59import org.onosproject.yang.gen.v1.openconfigmpls.rev20170621.OpenconfigMpls;
60import org.onosproject.yang.gen.v1.openconfigmpls.rev20170621.OpenconfigMplsIgp;
61import org.onosproject.yang.gen.v1.openconfigmpls.rev20170621.OpenconfigMplsStatic;
62import org.onosproject.yang.gen.v1.openconfigmpls.rev20170621.OpenconfigMplsTe;
63import org.onosproject.yang.gen.v1.openconfigmplsldp.rev20170621.OpenconfigMplsLdp;
64import org.onosproject.yang.gen.v1.openconfigmplsrsvp.rev20170621.OpenconfigMplsRsvp;
65import org.onosproject.yang.gen.v1.openconfigmplssr.rev20170621.OpenconfigMplsSr;
66import org.onosproject.yang.gen.v1.openconfigmplstypes.rev20170621.OpenconfigMplsTypes;
67import org.onosproject.yang.gen.v1.openconfignetworkinstance.rev20170228.OpenconfigNetworkInstance;
68import org.onosproject.yang.gen.v1.openconfignetworkinstance.rev20170228.OpenconfigNetworkInstanceL2;
69import org.onosproject.yang.gen.v1.openconfignetworkinstancel3.rev20170228.OpenconfigNetworkInstanceL3;
70import org.onosproject.yang.gen.v1.openconfignetworkinstancepolicy.rev20170215.OpenconfigNetworkInstancePolicy;
71import org.onosproject.yang.gen.v1.openconfignetworkinstancetypes.rev20170228.OpenconfigNetworkInstanceTypes;
72import org.onosproject.yang.gen.v1.openconfigopenflow.rev20170601.OpenconfigOpenflow;
73import org.onosproject.yang.gen.v1.openconfigopenflowtypes.rev20170601.OpenconfigOpenflowTypes;
74import org.onosproject.yang.gen.v1.openconfigopticalamplifier.rev20170708.OpenconfigOpticalAmplifier;
75import org.onosproject.yang.gen.v1.openconfigospfpolicy.rev20160822.OpenconfigOspfPolicy;
76import org.onosproject.yang.gen.v1.openconfigospftypes.rev20170228.OpenconfigOspfTypes;
77import org.onosproject.yang.gen.v1.openconfigospfv2.rev20170228.*;
78import org.onosproject.yang.gen.v1.openconfigpacketmatch.rev20170526.OpenconfigPacketMatch;
79import org.onosproject.yang.gen.v1.openconfigpacketmatchtypes.rev20170526.OpenconfigPacketMatchTypes;
Yuta HIGUCHI5aeb0fe2018-03-30 16:22:02 -070080import org.onosproject.yang.gen.v1.openconfigplatform.rev20161222.OpenconfigPlatform;
81import org.onosproject.yang.gen.v1.openconfigplatformlinecard.rev20170803.OpenconfigPlatformLinecard;
82import org.onosproject.yang.gen.v1.openconfigplatformport.rev20161024.OpenconfigPlatformPort;
83import org.onosproject.yang.gen.v1.openconfigplatformtransceiver.rev20170708.OpenconfigPlatformTransceiver;
柯志勇10068695bdd6a9e2018-04-10 19:38:18 +080084import org.onosproject.yang.gen.v1.openconfigplatformtypes.rev20170816.OpenconfigPlatformTypes;
85import org.onosproject.yang.gen.v1.openconfigpolicyforwarding.rev20170621.OpenconfigPfForwardingPolicies;
86import org.onosproject.yang.gen.v1.openconfigpolicyforwarding.rev20170621.OpenconfigPfInterfaces;
87import org.onosproject.yang.gen.v1.openconfigpolicyforwarding.rev20170621.OpenconfigPfPathGroups;
88import org.onosproject.yang.gen.v1.openconfigpolicyforwarding.rev20170621.OpenconfigPolicyForwarding;
89import org.onosproject.yang.gen.v1.openconfigpolicytypes.rev20170714.OpenconfigPolicyTypes;
90import org.onosproject.yang.gen.v1.openconfigprocmon.rev20170706.OpenconfigProcmon;
91import org.onosproject.yang.gen.v1.openconfigrelayagent.rev20160516.OpenconfigRelayAgent;
92import org.onosproject.yang.gen.v1.openconfigribbgp.rev20161017.*;
93import org.onosproject.yang.gen.v1.openconfigribbgpext.rev20161017.OpenconfigRibBgpExt;
94import org.onosproject.yang.gen.v1.openconfigribbgptypes.rev20161017.OpenconfigRibBgpTypes;
95import org.onosproject.yang.gen.v1.openconfigroutingpolicy.rev20170714.OpenconfigRoutingPolicy;
96import org.onosproject.yang.gen.v1.openconfigrsvpsrext.rev20170306.OpenconfigRsvpSrExt;
97import org.onosproject.yang.gen.v1.openconfigsegmentrouting.rev20170112.OpenconfigSegmentRouting;
98import org.onosproject.yang.gen.v1.openconfigspanningtree.rev20170714.OpenconfigSpanningTree;
99import org.onosproject.yang.gen.v1.openconfigspanningtreetypes.rev20170714.OpenconfigSpanningTreeTypes;
100import org.onosproject.yang.gen.v1.openconfigsystem.rev20170706.OpenconfigSystem;
101import org.onosproject.yang.gen.v1.openconfigsystemlogging.rev20170706.OpenconfigSystemLogging;
102import org.onosproject.yang.gen.v1.openconfigsystemterminal.rev20170706.OpenconfigSystemTerminal;
103import org.onosproject.yang.gen.v1.openconfigtelemetry.rev20170220.OpenconfigTelemetry;
104import org.onosproject.yang.gen.v1.openconfigtelemetrytypes.rev20170220.OpenconfigTelemetryTypes;
Yuta HIGUCHI5aeb0fe2018-03-30 16:22:02 -0700105import org.onosproject.yang.gen.v1.openconfigterminaldevice.rev20170708.OpenconfigTerminalDevice;
106import org.onosproject.yang.gen.v1.openconfigtransportlinecommon.rev20170708.OpenconfigTransportLineCommon;
柯志勇10068695bdd6a9e2018-04-10 19:38:18 +0800107import org.onosproject.yang.gen.v1.openconfigtransportlineprotection.rev20170708.OpenconfigTransportLineProtection;
Yuta HIGUCHI5aeb0fe2018-03-30 16:22:02 -0700108import org.onosproject.yang.gen.v1.openconfigtransporttypes.rev20170816.OpenconfigTransportTypes;
109import org.onosproject.yang.gen.v1.openconfigtypes.rev20170816.OpenconfigTypes;
柯志勇10068695bdd6a9e2018-04-10 19:38:18 +0800110import org.onosproject.yang.gen.v1.openconfigvlan.rev20170714.OpenconfigVlan;
111import org.onosproject.yang.gen.v1.openconfigvlantypes.rev20170714.OpenconfigVlanTypes;
112import org.onosproject.yang.gen.v1.openconfigwavelengthrouter.rev20170708.OpenconfigWavelengthRouter;
113import org.onosproject.yang.gen.v1.openconfigyangtypes.rev20170730.OpenconfigYangTypes;
Yuta HIGUCHI5aeb0fe2018-03-30 16:22:02 -0700114import org.onosproject.yang.model.DefaultYangModuleId;
115import org.onosproject.yang.model.YangModuleId;
116import org.onosproject.yang.runtime.AppModuleInfo;
117import org.onosproject.yang.runtime.DefaultAppModuleInfo;
118import org.slf4j.Logger;
119
120import com.google.common.collect.ImmutableMap;
121
122@Component(immediate = true)
123public class OpenConfigModelRegistrator extends AbstractYangModelRegistrator {
124
125 private static final Logger log = getLogger(OpenConfigModelRegistrator.class);
126
127 public OpenConfigModelRegistrator() {
128 super(OpenConfigModelRegistrator.class, getAppInfo());
129 }
130
131
132 private static Map<YangModuleId, AppModuleInfo> getAppInfo() {
133
134 return ImmutableMap.<YangModuleId, AppModuleInfo>builder()
135 .put(new DefaultYangModuleId("iana-if-type", "2017-03-30"),
柯志勇10068695bdd6a9e2018-04-10 19:38:18 +0800136 new DefaultAppModuleInfo(IanaIfType.class, null))
137 .put(new DefaultYangModuleId("ietf-inet-types", "2013-07-15"),
138 new DefaultAppModuleInfo(IetfInetTypes.class, null))
139 .put(new DefaultYangModuleId("ietf-interfaces", "2014-05-08"),
140 new DefaultAppModuleInfo(IetfInterfaces.class, null))
141 .put(new DefaultYangModuleId("openconfig-aaa-radius", "2017-07-06"),
142 new DefaultAppModuleInfo(OpenconfigAaaRadius.class, null))
143 .put(new DefaultYangModuleId("openconfig-aaa-tacacs", "2017-07-06"),
144 new DefaultAppModuleInfo(OpenconfigAaaTacacs.class, null))
145 .put(new DefaultYangModuleId("openconfig-aaa-types", "2017-07-06"),
146 new DefaultAppModuleInfo(OpenconfigAaaTypes.class, null))
147 .put(new DefaultYangModuleId("openconfig-aaa", "2017-07-06"),
148 new DefaultAppModuleInfo(OpenconfigAaa.class, null))
149 .put(new DefaultYangModuleId("openconfig-acl", "2017-05-26"),
150 new DefaultAppModuleInfo(OpenconfigAcl.class, null))
151 .put(new DefaultYangModuleId("openconfig-aft-common", "2017-05-10"),
152 new DefaultAppModuleInfo(OpenconfigAftCommon.class, null))
153 .put(new DefaultYangModuleId("openconfig-aft-ethernet", "2017-05-10"),
154 new DefaultAppModuleInfo(OpenconfigAftEthernet.class, null))
155 .put(new DefaultYangModuleId("openconfig-aft-ipv4", "2017-05-10"),
156 new DefaultAppModuleInfo(OpenconfigAftIpv4.class, null))
157 .put(new DefaultYangModuleId("openconfig-aft-ipv6", "2017-05-10"),
158 new DefaultAppModuleInfo(OpenconfigAftIpv6.class, null))
159 .put(new DefaultYangModuleId("openconfig-aft-mpls", "2017-05-10"),
160 new DefaultAppModuleInfo(OpenconfigAftMpls.class, null))
161 .put(new DefaultYangModuleId("openconfig-aft-network-instance", "2017-01-13"),
162 new DefaultAppModuleInfo(OpenconfigAftNetworkInstance.class, null))
163 .put(new DefaultYangModuleId("openconfig-aft-pf", "2017-05-10"),
164 new DefaultAppModuleInfo(OpenconfigAftPf.class, null))
165 .put(new DefaultYangModuleId("openconfig-aft-types", "2017-05-10"),
166 new DefaultAppModuleInfo(OpenconfigAftTypes.class, null))
167 .put(new DefaultYangModuleId("openconfig-aft", "2017-05-10"),
168 new DefaultAppModuleInfo(OpenconfigAft.class, null))
169 .put(new DefaultYangModuleId("openconfig-bgp-common-multiprotocol", "2017-07-30"),
170 new DefaultAppModuleInfo(OpenconfigBgpCommonMultiprotocol.class, null))
171 .put(new DefaultYangModuleId("openconfig-bgp-common-structure", "2017-07-30"),
172 new DefaultAppModuleInfo(OpenconfigBgpCommonStructure.class, null))
173 .put(new DefaultYangModuleId("openconfig-bgp-common", "2017-07-30"),
174 new DefaultAppModuleInfo(OpenconfigBgpCommon.class, null))
175 .put(new DefaultYangModuleId("openconfig-bgp-errors", "2017-07-30"),
176 new DefaultAppModuleInfo(OpenconfigBgpErrors.class, null))
177 .put(new DefaultYangModuleId("openconfig-bgp-global", "2017-07-30"),
178 new DefaultAppModuleInfo(OpenconfigBgpGlobal.class, null))
179 .put(new DefaultYangModuleId("openconfig-bgp-neighbor", "2017-07-30"),
180 new DefaultAppModuleInfo(OpenconfigBgpNeighbor.class, null))
181 .put(new DefaultYangModuleId("openconfig-bgp-peer-group", "2017-07-30"),
182 new DefaultAppModuleInfo(OpenconfigBgpPeerGroup.class, null))
183 .put(new DefaultYangModuleId("openconfig-bgp-policy", "2017-07-30"),
184 new DefaultAppModuleInfo(OpenconfigBgpPolicy.class, null))
185 .put(new DefaultYangModuleId("openconfig-bgp-types", "2017-07-30"),
186 new DefaultAppModuleInfo(OpenconfigBgpTypes.class, null))
187 .put(new DefaultYangModuleId("openconfig-bgp", "2017-07-30"),
188 new DefaultAppModuleInfo(OpenconfigBgp.class, null))
189 .put(new DefaultYangModuleId("openconfig-catalog-types", "2017-05-01"),
190 new DefaultAppModuleInfo(OpenconfigCatalogTypes.class, null))
191 .put(new DefaultYangModuleId("openconfig-channel-monitor", "2017-07-08"),
192 new DefaultAppModuleInfo(OpenconfigChannelMonitor.class, null))
193 .put(new DefaultYangModuleId("openconfig-if-aggregate", "2017-07-14"),
194 new DefaultAppModuleInfo(OpenconfigIfAggregate.class, null))
195 .put(new DefaultYangModuleId("openconfig-if-ethernet", "2017-07-14"),
196 new DefaultAppModuleInfo(OpenconfigIfEthernet.class, null))
197 .put(new DefaultYangModuleId("openconfig-if-ip-ext", "2017-07-14"),
198 new DefaultAppModuleInfo(OpenconfigIfIpExt.class, null))
199 .put(new DefaultYangModuleId("openconfig-if-ip", "2017-07-14"),
200 new DefaultAppModuleInfo(OpenconfigIfIp.class, null))
201 .put(new DefaultYangModuleId("openconfig-if-types", "2016-11-14"),
202 new DefaultAppModuleInfo(OpenconfigIfTypes.class, null))
203 .put(new DefaultYangModuleId("openconfig-inet-types", "2017-07-06"),
204 new DefaultAppModuleInfo(OpenconfigInetTypes.class, null))
205 .put(new DefaultYangModuleId("openconfig-isis-lsdb-types", "2017-07-26"),
206 new DefaultAppModuleInfo(OpenconfigIsisLsdbTypes.class, null))
207 .put(new DefaultYangModuleId("openconfig-isis-lsp", "2017-07-26"),
208 new DefaultAppModuleInfo(OpenconfigIsisLsp.class, null))
209 .put(new DefaultYangModuleId("openconfig-isis-policy", "2017-07-26"),
210 new DefaultAppModuleInfo(OpenconfigIsisPolicy.class, null))
211 .put(new DefaultYangModuleId("openconfig-isis-routing", "2017-07-26"),
212 new DefaultAppModuleInfo(OpenconfigIsisRouting.class, null))
213 .put(new DefaultYangModuleId("openconfig-isis-types", "2017-07-26"),
214 new DefaultAppModuleInfo(OpenconfigIsisTypes.class, null))
215 .put(new DefaultYangModuleId("openconfig-isis", "2017-07-26"),
216 new DefaultAppModuleInfo(OpenconfigIsis.class, null))
217 .put(new DefaultYangModuleId("openconfig-lacp", "2017-05-05"),
218 new DefaultAppModuleInfo(OpenconfigLacp.class, null))
219 .put(new DefaultYangModuleId("openconfig-lldp-types", "2016-05-16"),
220 new DefaultAppModuleInfo(OpenconfigLldpTypes.class, null))
221 .put(new DefaultYangModuleId("openconfig-lldp", "2016-05-16"),
222 new DefaultAppModuleInfo(OpenconfigLldp.class, null))
223 .put(new DefaultYangModuleId("openconfig-local-routing", "2017-05-15"),
224 new DefaultAppModuleInfo(OpenconfigLocalRouting.class, null))
225 .put(new DefaultYangModuleId("openconfig-module-catalog", "2017-05-01"),
226 new DefaultAppModuleInfo(OpenconfigModuleCatalog.class, null))
227 .put(new DefaultYangModuleId("openconfig-mpls-igp", "2017-05-15"),
228 new DefaultAppModuleInfo(OpenconfigMplsIgp.class, null))
229 .put(new DefaultYangModuleId("openconfig-mpls-ldp", "2017-05-15"),
230 new DefaultAppModuleInfo(OpenconfigMplsLdp.class, null))
231 .put(new DefaultYangModuleId("openconfig-mpls-rsvp", "2017-05-15"),
232 new DefaultAppModuleInfo(OpenconfigMplsRsvp.class, null))
233 .put(new DefaultYangModuleId("openconfig-mpls-sr", "2017-05-15"),
234 new DefaultAppModuleInfo(OpenconfigMplsSr.class, null))
235 .put(new DefaultYangModuleId("openconfig-mpls-static", "2017-05-15"),
236 new DefaultAppModuleInfo(OpenconfigMplsStatic.class, null))
237 .put(new DefaultYangModuleId("openconfig-mpls-te", "2017-05-15"),
238 new DefaultAppModuleInfo(OpenconfigMplsTe.class, null))
239 .put(new DefaultYangModuleId("openconfig-mpls-types", "2017-05-15"),
240 new DefaultAppModuleInfo(OpenconfigMplsTypes.class, null))
241 .put(new DefaultYangModuleId("openconfig-mpls", "2017-05-15"),
242 new DefaultAppModuleInfo(OpenconfigMpls.class, null))
243 .put(new DefaultYangModuleId("openconfig-network-instance-l2", "2017-02-28"),
244 new DefaultAppModuleInfo(OpenconfigNetworkInstanceL2.class, null))
245 .put(new DefaultYangModuleId("openconfig-network-instance-l3", "2017-02-28"),
246 new DefaultAppModuleInfo(OpenconfigNetworkInstanceL3.class, null))
247 .put(new DefaultYangModuleId("openconfig-network-instance-policy", "2017-02-15"),
248 new DefaultAppModuleInfo(OpenconfigNetworkInstancePolicy.class, null))
249 .put(new DefaultYangModuleId("openconfig-network-instance-types", "2017-02-28"),
250 new DefaultAppModuleInfo(OpenconfigNetworkInstanceTypes.class, null))
251 .put(new DefaultYangModuleId("openconfig-network-instance", "2017-02-28"),
252 new DefaultAppModuleInfo(OpenconfigNetworkInstance.class, null))
253 .put(new DefaultYangModuleId("openconfig-openflow-types", "2017-06-01"),
254 new DefaultAppModuleInfo(OpenconfigOpenflowTypes.class, null))
255 .put(new DefaultYangModuleId("openconfig-openflow", "2017-06-01"),
256 new DefaultAppModuleInfo(OpenconfigOpenflow.class, null))
257 .put(new DefaultYangModuleId("openconfig-optical-amplifier", "2017-07-08"),
258 new DefaultAppModuleInfo(OpenconfigOpticalAmplifier.class, null))
259 .put(new DefaultYangModuleId("openconfig-ospf-policy", "2016-08-22"),
260 new DefaultAppModuleInfo(OpenconfigOspfPolicy.class, null))
261 .put(new DefaultYangModuleId("openconfig-ospf-types", "2017-02-28"),
262 new DefaultAppModuleInfo(OpenconfigOspfTypes.class, null))
263 .put(new DefaultYangModuleId("openconfig-ospfv2-area-interface", "2017-02-28"),
264 new DefaultAppModuleInfo(OpenconfigOspfv2AreaInterface.class, null))
265 .put(new DefaultYangModuleId("openconfig-ospfv2-area", "2017-02-28"),
266 new DefaultAppModuleInfo(OpenconfigOspfv2Area.class, null))
267 .put(new DefaultYangModuleId("openconfig-ospfv2-common", "2017-02-28"),
268 new DefaultAppModuleInfo(OpenconfigOspfv2Common.class, null))
269 .put(new DefaultYangModuleId("openconfig-ospfv2-global", "2017-02-28"),
270 new DefaultAppModuleInfo(OpenconfigOspfv2Global.class, null))
271 .put(new DefaultYangModuleId("openconfig-ospfv2-lsdb", "2017-02-28"),
272 new DefaultAppModuleInfo(OpenconfigOspfv2Lsdb.class, null))
273 .put(new DefaultYangModuleId("openconfig-ospfv2", "2017-02-28"),
274 new DefaultAppModuleInfo(OpenconfigOspfv2.class, null))
275 .put(new DefaultYangModuleId("openconfig-packet-match-types", "2017-05-26"),
276 new DefaultAppModuleInfo(OpenconfigPacketMatchTypes.class, null))
277 .put(new DefaultYangModuleId("openconfig-packet-match", "2017-05-26"),
278 new DefaultAppModuleInfo(OpenconfigPacketMatch.class, null))
279 .put(new DefaultYangModuleId("openconfig-pf-forwarding-policies", "2017-06-21"),
280 new DefaultAppModuleInfo(OpenconfigPfForwardingPolicies.class, null))
281 .put(new DefaultYangModuleId("openconfig-pf-interfaces", "2017-06-21"),
282 new DefaultAppModuleInfo(OpenconfigPfInterfaces.class, null))
283 .put(new DefaultYangModuleId("openconfig-pf-path-groups", "2017-06-21"),
284 new DefaultAppModuleInfo(OpenconfigPfPathGroups.class, null))
285 .put(new DefaultYangModuleId("openconfig-platform-types", "2017-08-16"),
286 new DefaultAppModuleInfo(OpenconfigPlatformTypes.class, null))
287 .put(new DefaultYangModuleId("openconfig-policy-forwarding", "2017-06-21"),
288 new DefaultAppModuleInfo(OpenconfigPolicyForwarding.class, null))
289 .put(new DefaultYangModuleId("openconfig-policy-types", "2017-07-14"),
290 new DefaultAppModuleInfo(OpenconfigPolicyTypes.class, null))
291 .put(new DefaultYangModuleId("openconfig-procmon", "2017-07-06"),
292 new DefaultAppModuleInfo(OpenconfigProcmon.class, null))
293 .put(new DefaultYangModuleId("openconfig-relay-agent", "2016-05-16"),
294 new DefaultAppModuleInfo(OpenconfigRelayAgent.class, null))
295 .put(new DefaultYangModuleId("openconfig-rib-bgp-attributes", "2016-10-17"),
296 new DefaultAppModuleInfo(OpenconfigRibBgpAttributes.class, null))
297 .put(new DefaultYangModuleId("openconfig-rib-bgp-ext", "2016-10-17"),
298 new DefaultAppModuleInfo(OpenconfigRibBgpExt.class, null))
299 .put(new DefaultYangModuleId("openconfig-rib-bgp-shared-attributes", "2016-10-17"),
300 new DefaultAppModuleInfo(OpenconfigRibBgpSharedAttributes.class, null))
301 .put(new DefaultYangModuleId("openconfig-rib-bgp-table-attributes", "2016-10-17"),
302 new DefaultAppModuleInfo(OpenconfigRibBgpTableAttributes.class, null))
303 .put(new DefaultYangModuleId("openconfig-rib-bgp-tables", "2016-10-17"),
304 new DefaultAppModuleInfo(OpenconfigRibBgpTables.class, null))
305 .put(new DefaultYangModuleId("openconfig-rib-bgp-types", "2016-10-17"),
306 new DefaultAppModuleInfo(OpenconfigRibBgpTypes.class, null))
307 .put(new DefaultYangModuleId("openconfig-rib-bgp", "2016-10-17"),
308 new DefaultAppModuleInfo(OpenconfigRibBgp.class, null))
309 .put(new DefaultYangModuleId("openconfig-routing-policy", "2017-07-14"),
310 new DefaultAppModuleInfo(OpenconfigRoutingPolicy.class, null))
311 .put(new DefaultYangModuleId("openconfig-rsvp-sr-ext", "2017-03-06"),
312 new DefaultAppModuleInfo(OpenconfigRsvpSrExt.class, null))
313 .put(new DefaultYangModuleId("openconfig-segment-routing", "2017-01-12"),
314 new DefaultAppModuleInfo(OpenconfigSegmentRouting.class, null))
315 .put(new DefaultYangModuleId("openconfig-spanning-tree-types", "2017-07-14"),
316 new DefaultAppModuleInfo(OpenconfigSpanningTreeTypes.class, null))
317 .put(new DefaultYangModuleId("openconfig-spanning-tree", "2017-07-14"),
318 new DefaultAppModuleInfo(OpenconfigSpanningTree.class, null))
319 .put(new DefaultYangModuleId("openconfig-system-logging", "2017-07-06"),
320 new DefaultAppModuleInfo(OpenconfigSystemLogging.class, null))
321 .put(new DefaultYangModuleId("openconfig-system-terminal", "2017-07-06"),
322 new DefaultAppModuleInfo(OpenconfigSystemTerminal.class, null))
323 .put(new DefaultYangModuleId("openconfig-system", "2017-07-06"),
324 new DefaultAppModuleInfo(OpenconfigSystem.class, null))
325 .put(new DefaultYangModuleId("openconfig-telemetry-types", "2017-02-20"),
326 new DefaultAppModuleInfo(OpenconfigTelemetryTypes.class, null))
327 .put(new DefaultYangModuleId("openconfig-telemetry", "2017-02-20"),
328 new DefaultAppModuleInfo(OpenconfigTelemetry.class, null))
329 .put(new DefaultYangModuleId("openconfig-transport-line-protection", "2017-07-08"),
330 new DefaultAppModuleInfo(OpenconfigTransportLineProtection.class, null))
331 .put(new DefaultYangModuleId("openconfig-vlan-types", "2017-07-14"),
332 new DefaultAppModuleInfo(OpenconfigVlanTypes.class, null))
333 .put(new DefaultYangModuleId("openconfig-vlan", "2017-07-14"),
334 new DefaultAppModuleInfo(OpenconfigVlan.class, null))
335 .put(new DefaultYangModuleId("openconfig-wavelength-router", "2017-07-08"),
336 new DefaultAppModuleInfo(OpenconfigWavelengthRouter.class, null))
337 .put(new DefaultYangModuleId("openconfig-yang-types", "2017-07-30"),
338 new DefaultAppModuleInfo(OpenconfigYangTypes.class, null))
Yuta HIGUCHI5aeb0fe2018-03-30 16:22:02 -0700339 .put(new DefaultYangModuleId("openconfig-platform", "2016-12-22"),
柯志勇10068695bdd6a9e2018-04-10 19:38:18 +0800340 new DefaultAppModuleInfo(OpenconfigPlatform.class, null))
Yuta HIGUCHI5aeb0fe2018-03-30 16:22:02 -0700341 .put(new DefaultYangModuleId("openconfig-interfaces", "2017-07-14"),
柯志勇10068695bdd6a9e2018-04-10 19:38:18 +0800342 new DefaultAppModuleInfo(OpenconfigInterfaces.class, null))
Yuta HIGUCHI5aeb0fe2018-03-30 16:22:02 -0700343 .put(new DefaultYangModuleId("openconfig-transport-types", "2017-08-16"),
柯志勇10068695bdd6a9e2018-04-10 19:38:18 +0800344 new DefaultAppModuleInfo(OpenconfigTransportTypes.class, null))
Yuta HIGUCHI5aeb0fe2018-03-30 16:22:02 -0700345 .put(new DefaultYangModuleId("openconfig-types", "2017-08-16"),
柯志勇10068695bdd6a9e2018-04-10 19:38:18 +0800346 new DefaultAppModuleInfo(OpenconfigTypes.class, null))
Yuta HIGUCHI5aeb0fe2018-03-30 16:22:02 -0700347// .put(new DefaultYangModuleId("openconfig-extensions", "2017-08-16"),
348// new DefaultAppModuleInfo(OpenconfigEx.class, null))
349 .put(new DefaultYangModuleId("ietf-yang-types", "2013-07-15"),
柯志勇10068695bdd6a9e2018-04-10 19:38:18 +0800350 new DefaultAppModuleInfo(IetfYangTypes.class, null))
Yuta HIGUCHI5aeb0fe2018-03-30 16:22:02 -0700351
352 // minimum required for the example
353 .put(new DefaultYangModuleId("openconfig-platform-linecard", "2017-08-03"),
柯志勇10068695bdd6a9e2018-04-10 19:38:18 +0800354 new DefaultAppModuleInfo(OpenconfigPlatformLinecard.class, null))
Yuta HIGUCHI5aeb0fe2018-03-30 16:22:02 -0700355 .put(new DefaultYangModuleId("openconfig-platform-port", "2016-10-24"),
柯志勇10068695bdd6a9e2018-04-10 19:38:18 +0800356 new DefaultAppModuleInfo(OpenconfigPlatformPort.class, null))
Yuta HIGUCHI5aeb0fe2018-03-30 16:22:02 -0700357 .put(new DefaultYangModuleId("openconfig-platform-transceiver", "2017-07-08"),
柯志勇10068695bdd6a9e2018-04-10 19:38:18 +0800358 new DefaultAppModuleInfo(OpenconfigPlatformTransceiver.class, null))
Yuta HIGUCHI5aeb0fe2018-03-30 16:22:02 -0700359 .put(new DefaultYangModuleId("openconfig-transport-line-common", "2017-07-08"),
柯志勇10068695bdd6a9e2018-04-10 19:38:18 +0800360 new DefaultAppModuleInfo(OpenconfigTransportLineCommon.class, null))
Yuta HIGUCHI5aeb0fe2018-03-30 16:22:02 -0700361 .put(new DefaultYangModuleId("openconfig-terminal-device", "2017-07-08"),
柯志勇10068695bdd6a9e2018-04-10 19:38:18 +0800362 new DefaultAppModuleInfo(OpenconfigTerminalDevice.class, null))
Yuta HIGUCHI5aeb0fe2018-03-30 16:22:02 -0700363 .build();
364 }
365}