Search in sources :

Example 1 with DefaultAppModuleInfo

use of org.onosproject.yang.runtime.DefaultAppModuleInfo in project onos by opennetworkinglab.

the class OpenRoadmServiceModelRegistrator method getAppInfo.

private static Map<YangModuleId, AppModuleInfo> getAppInfo() {
    Map<YangModuleId, AppModuleInfo> appInfo = new HashMap<>();
    // Dependencies for org-openroadm-service
    appInfo.put(new DefaultYangModuleId("ietf-yang-types", "2013-07-15"), new DefaultAppModuleInfo(IetfYangTypes.class, null));
    appInfo.put(new DefaultYangModuleId("org-openroadm-routing-constraints", "2016-10-14"), new DefaultAppModuleInfo(OrgOpenroadmRoutingConstraints.class, null));
    appInfo.put(new DefaultYangModuleId("org-openroadm-common-types", "2016-10-14"), new DefaultAppModuleInfo(OrgOpenroadmCommonTypes.class, null));
    appInfo.put(new DefaultYangModuleId("org-openroadm-resource-types", "2016-10-14"), new DefaultAppModuleInfo(OrgOpenroadmResourceTypes.class, null));
    appInfo.put(new DefaultYangModuleId("org-openroadm-common-service-types", "2016-10-14"), new DefaultAppModuleInfo(OrgOpenroadmCommonServiceTypes.class, null));
    // Dependencies for org-openroadm-common-service-types
    appInfo.put(new DefaultYangModuleId("ietf-inet-types", "2013-07-15"), new DefaultAppModuleInfo(IetfInetTypes.class, null));
    appInfo.put(new DefaultYangModuleId("org-openroadm-topology", "2016-10-14"), new DefaultAppModuleInfo(OrgOpenroadmTopology.class, null));
    appInfo.put(new DefaultYangModuleId("org-openroadm-topology", "2016-10-14"), new DefaultAppModuleInfo(OrgOpenroadmTopology.class, null));
    // Dependency for org-openroadm-topology
    appInfo.put(new DefaultYangModuleId("org-openroadm-resource", "2016-10-14"), new DefaultAppModuleInfo(OrgOpenroadmResource.class, null));
    appInfo.put(new DefaultYangModuleId("org-openroadm-service", "2016-10-14"), new DefaultAppModuleInfo(OrgOpenroadmService.class, null));
    return ImmutableMap.copyOf(appInfo);
}
Also used : OrgOpenroadmRoutingConstraints(org.onosproject.yang.gen.v1.orgopenroadmroutingconstraints.rev20161014.OrgOpenroadmRoutingConstraints) AppModuleInfo(org.onosproject.yang.runtime.AppModuleInfo) DefaultAppModuleInfo(org.onosproject.yang.runtime.DefaultAppModuleInfo) HashMap(java.util.HashMap) IetfInetTypes(org.onosproject.yang.gen.v1.ietfinettypes.rev20130715.IetfInetTypes) OrgOpenroadmResource(org.onosproject.yang.gen.v1.orgopenroadmresource.rev20161014.OrgOpenroadmResource) OrgOpenroadmResourceTypes(org.onosproject.yang.gen.v1.orgopenroadmresourcetypes.rev20161014.OrgOpenroadmResourceTypes) OrgOpenroadmTopology(org.onosproject.yang.gen.v1.orgopenroadmtopology.rev20161014.OrgOpenroadmTopology) OrgOpenroadmService(org.onosproject.yang.gen.v1.orgopenroadmservice.rev20161014.OrgOpenroadmService) IetfYangTypes(org.onosproject.yang.gen.v1.ietfyangtypes.rev20130715.IetfYangTypes) OrgOpenroadmCommonTypes(org.onosproject.yang.gen.v1.orgopenroadmcommontypes.rev20161014.OrgOpenroadmCommonTypes) DefaultYangModuleId(org.onosproject.yang.model.DefaultYangModuleId) DefaultAppModuleInfo(org.onosproject.yang.runtime.DefaultAppModuleInfo) OrgOpenroadmCommonServiceTypes(org.onosproject.yang.gen.v1.orgopenroadmcommonservicetypes.rev20161014.OrgOpenroadmCommonServiceTypes) DefaultYangModuleId(org.onosproject.yang.model.DefaultYangModuleId) YangModuleId(org.onosproject.yang.model.YangModuleId)

Example 2 with DefaultAppModuleInfo

use of org.onosproject.yang.runtime.DefaultAppModuleInfo in project onos by opennetworkinglab.

the class TapiModelRegistrator method getAppInfo.

private static Map<YangModuleId, AppModuleInfo> getAppInfo() {
    Map<YangModuleId, AppModuleInfo> appInfo = new HashMap<>();
    appInfo.put(new DefaultYangModuleId("tapi-connectivity", "2018-12-10"), new DefaultAppModuleInfo(TapiConnectivity.class, null));
    appInfo.put(new DefaultYangModuleId("tapi-common", "2018-12-10"), new DefaultAppModuleInfo(TapiCommon.class, null));
    appInfo.put(new DefaultYangModuleId("tapi-topology", "2018-12-10"), new DefaultAppModuleInfo(TapiTopology.class, null));
    appInfo.put(new DefaultYangModuleId("tapi-photonic-media", "2018-12-10"), new DefaultAppModuleInfo(TapiPhotonicMedia.class, null));
    appInfo.put(new DefaultYangModuleId("tapi-oam", "2018-12-10"), new DefaultAppModuleInfo(TapiOam.class, null));
    appInfo.put(new DefaultYangModuleId("tapi-odu", "2018-12-10"), new DefaultAppModuleInfo(TapiOdu.class, null));
    appInfo.put(new DefaultYangModuleId("tapi-path-computation", "2018-12-10"), new DefaultAppModuleInfo(TapiPathComputation.class, null));
    appInfo.put(new DefaultYangModuleId("tapi-notification", "2018-12-10"), new DefaultAppModuleInfo(TapiNotification.class, null));
    appInfo.put(new DefaultYangModuleId("tapi-virtual-network", "2018-12-10"), new DefaultAppModuleInfo(TapiVirtualNetwork.class, null));
    appInfo.put(new DefaultYangModuleId("tapi-dsr", "2018-12-10"), new DefaultAppModuleInfo(TapiDsr.class, null));
    appInfo.put(new DefaultYangModuleId("tapi-eth", "2018-12-10"), new DefaultAppModuleInfo(TapiEth.class, null));
    return ImmutableMap.copyOf(appInfo);
}
Also used : AppModuleInfo(org.onosproject.yang.runtime.AppModuleInfo) DefaultAppModuleInfo(org.onosproject.yang.runtime.DefaultAppModuleInfo) HashMap(java.util.HashMap) TapiConnectivity(org.onosproject.yang.gen.v1.tapiconnectivity.rev20181210.TapiConnectivity) TapiCommon(org.onosproject.yang.gen.v1.tapicommon.rev20181210.TapiCommon) TapiDsr(org.onosproject.yang.gen.v1.tapidsr.rev20181210.TapiDsr) TapiPhotonicMedia(org.onosproject.yang.gen.v1.tapiphotonicmedia.rev20181210.TapiPhotonicMedia) TapiOdu(org.onosproject.yang.gen.v1.tapiodu.rev20181210.TapiOdu) TapiPathComputation(org.onosproject.yang.gen.v1.tapipathcomputation.rev20181210.TapiPathComputation) TapiVirtualNetwork(org.onosproject.yang.gen.v1.tapivirtualnetwork.rev20181210.TapiVirtualNetwork) TapiOam(org.onosproject.yang.gen.v1.tapioam.rev20181210.TapiOam) TapiNotification(org.onosproject.yang.gen.v1.tapinotification.rev20181210.TapiNotification) DefaultYangModuleId(org.onosproject.yang.model.DefaultYangModuleId) TapiTopology(org.onosproject.yang.gen.v1.tapitopology.rev20181210.TapiTopology) DefaultAppModuleInfo(org.onosproject.yang.runtime.DefaultAppModuleInfo) DefaultYangModuleId(org.onosproject.yang.model.DefaultYangModuleId) YangModuleId(org.onosproject.yang.model.YangModuleId) TapiEth(org.onosproject.yang.gen.v1.tapieth.rev20181210.TapiEth)

Example 3 with DefaultAppModuleInfo

use of org.onosproject.yang.runtime.DefaultAppModuleInfo in project onos by opennetworkinglab.

the class YangModelRegistrator method getAppInfo.

private static Map<YangModuleId, AppModuleInfo> getAppInfo() {
    Map<YangModuleId, AppModuleInfo> appInfo = new HashMap<>();
    appInfo.put(new DefaultYangModuleId("ietf-inet-types", "2013-07-15"), new DefaultAppModuleInfo(IetfInetTypes.class, null));
    appInfo.put(new DefaultYangModuleId("ietf-yang-types", "2013-07-15"), new DefaultAppModuleInfo(IetfYangTypes.class, null));
    List<String> systemFeatures = new ArrayList<>();
    systemFeatures.add("local-users");
    systemFeatures.add("authentication");
    systemFeatures.add("ntp");
    appInfo.put(new DefaultYangModuleId("ietf-system", "2014-08-06"), new DefaultAppModuleInfo(IetfSystem.class, systemFeatures));
    return ImmutableMap.copyOf(appInfo);
// TODO: Do some other registration tasks...
}
Also used : AppModuleInfo(org.onosproject.yang.runtime.AppModuleInfo) DefaultAppModuleInfo(org.onosproject.yang.runtime.DefaultAppModuleInfo) HashMap(java.util.HashMap) IetfYangTypes(org.onosproject.yang.gen.v1.ietfyangtypes.rev20130715.IetfYangTypes) ArrayList(java.util.ArrayList) DefaultYangModuleId(org.onosproject.yang.model.DefaultYangModuleId) IetfInetTypes(org.onosproject.yang.gen.v1.ietfinettypes.rev20130715.IetfInetTypes) IetfSystem(org.onosproject.yang.gen.v1.ietfsystem.rev20140806.IetfSystem) DefaultAppModuleInfo(org.onosproject.yang.runtime.DefaultAppModuleInfo) DefaultYangModuleId(org.onosproject.yang.model.DefaultYangModuleId) YangModuleId(org.onosproject.yang.model.YangModuleId)

Example 4 with DefaultAppModuleInfo

use of org.onosproject.yang.runtime.DefaultAppModuleInfo in project onos by opennetworkinglab.

the class CienaWaveserverAiModelRegistrator method getAppInfo.

private static Map<YangModuleId, AppModuleInfo> getAppInfo() {
    Map<YangModuleId, AppModuleInfo> appInfo = new HashMap<>();
    appInfo.put(new DefaultYangModuleId("ciena-waveserver-system", "2018-01-04"), new DefaultAppModuleInfo(CienaWaveserverSystem.class, null));
    appInfo.put(new DefaultYangModuleId("ciena-waveserver-port", "2017-07-31"), new DefaultAppModuleInfo(CienaWaveserverPort.class, null));
    return ImmutableMap.copyOf(appInfo);
// TODO: Do some other registration tasks...
}
Also used : DefaultAppModuleInfo(org.onosproject.yang.runtime.DefaultAppModuleInfo) AppModuleInfo(org.onosproject.yang.runtime.AppModuleInfo) CienaWaveserverPort(org.onosproject.yang.gen.v1.cienawaveserverport.rev20170731.CienaWaveserverPort) HashMap(java.util.HashMap) CienaWaveserverSystem(org.onosproject.yang.gen.v1.cienawaveserversystem.rev20180104.CienaWaveserverSystem) DefaultYangModuleId(org.onosproject.yang.model.DefaultYangModuleId) DefaultAppModuleInfo(org.onosproject.yang.runtime.DefaultAppModuleInfo) DefaultYangModuleId(org.onosproject.yang.model.DefaultYangModuleId) YangModuleId(org.onosproject.yang.model.YangModuleId)

Example 5 with DefaultAppModuleInfo

use of org.onosproject.yang.runtime.DefaultAppModuleInfo in project onos by opennetworkinglab.

the class OpenRoadmNetworkModelRegistrator method getAppInfo.

private static Map<YangModuleId, AppModuleInfo> getAppInfo() {
    Map<YangModuleId, AppModuleInfo> appInfo = new HashMap<>();
    // Dependencies for org-openroadm-network
    appInfo.put(new DefaultYangModuleId("org-openroadm-roadm", "2016-10-14"), new DefaultAppModuleInfo(OrgOpenroadmRoadm.class, null));
    appInfo.put(new DefaultYangModuleId("org-openroadm-external-pluggable", "2016-10-14"), new DefaultAppModuleInfo(OrgOpenroadmExternalPluggable.class, null));
    appInfo.put(new DefaultYangModuleId("org-openroadm-xponder", "2016-10-14"), new DefaultAppModuleInfo(OrgOpenroadmXponder.class, null));
    // Dependencies for org-openroadm-roadm
    appInfo.put(new DefaultYangModuleId("org-openroadm-srg", "2016-10-14"), new DefaultAppModuleInfo(OrgOpenroadmSrg.class, null));
    appInfo.put(new DefaultYangModuleId("org-openroadm-degree", "2016-10-14"), new DefaultAppModuleInfo(OrgOpenroadmDegree.class, null));
    appInfo.put(new DefaultYangModuleId("ietf-inet-types", "2013-07-15"), new DefaultAppModuleInfo(IetfInetTypes.class, null));
    appInfo.put(new DefaultYangModuleId("org-openroadm-common-types", "2016-10-14"), new DefaultAppModuleInfo(OrgOpenroadmCommonTypes.class, null));
    // Dependencies for org-openroadm-external-pluggable
    appInfo.put(new DefaultYangModuleId("org-openroadm-equipment-states-types", "2016-10-14"), new DefaultAppModuleInfo(OrgOpenroadmEquipmentStatesTypes.class, null));
    appInfo.put(new DefaultYangModuleId("org-openroadm-network", "2016-10-14"), new DefaultAppModuleInfo(OrgOpenroadmNetwork.class, null));
    return ImmutableMap.copyOf(appInfo);
}
Also used : AppModuleInfo(org.onosproject.yang.runtime.AppModuleInfo) DefaultAppModuleInfo(org.onosproject.yang.runtime.DefaultAppModuleInfo) OrgOpenroadmXponder(org.onosproject.yang.gen.v1.orgopenroadmxponder.rev20161014.OrgOpenroadmXponder) HashMap(java.util.HashMap) OrgOpenroadmDegree(org.onosproject.yang.gen.v1.orgopenroadmdegree.rev20161014.OrgOpenroadmDegree) IetfInetTypes(org.onosproject.yang.gen.v1.ietfinettypes.rev20130715.IetfInetTypes) OrgOpenroadmRoadm(org.onosproject.yang.gen.v1.orgopenroadmroadm.rev20161014.OrgOpenroadmRoadm) OrgOpenroadmSrg(org.onosproject.yang.gen.v1.orgopenroadmsrg.rev20161014.OrgOpenroadmSrg) OrgOpenroadmNetwork(org.onosproject.yang.gen.v1.orgopenroadmnetwork.rev20161014.OrgOpenroadmNetwork) OrgOpenroadmEquipmentStatesTypes(org.onosproject.yang.gen.v1.orgopenroadmequipmentstatestypes.rev20161014.OrgOpenroadmEquipmentStatesTypes) OrgOpenroadmCommonTypes(org.onosproject.yang.gen.v1.orgopenroadmcommontypes.rev20161014.OrgOpenroadmCommonTypes) DefaultYangModuleId(org.onosproject.yang.model.DefaultYangModuleId) OrgOpenroadmExternalPluggable(org.onosproject.yang.gen.v1.orgopenroadmexternalpluggable.rev20161014.OrgOpenroadmExternalPluggable) DefaultAppModuleInfo(org.onosproject.yang.runtime.DefaultAppModuleInfo) DefaultYangModuleId(org.onosproject.yang.model.DefaultYangModuleId) YangModuleId(org.onosproject.yang.model.YangModuleId)

Aggregations

HashMap (java.util.HashMap)5 DefaultYangModuleId (org.onosproject.yang.model.DefaultYangModuleId)5 YangModuleId (org.onosproject.yang.model.YangModuleId)5 AppModuleInfo (org.onosproject.yang.runtime.AppModuleInfo)5 DefaultAppModuleInfo (org.onosproject.yang.runtime.DefaultAppModuleInfo)5 IetfInetTypes (org.onosproject.yang.gen.v1.ietfinettypes.rev20130715.IetfInetTypes)3 IetfYangTypes (org.onosproject.yang.gen.v1.ietfyangtypes.rev20130715.IetfYangTypes)2 OrgOpenroadmCommonTypes (org.onosproject.yang.gen.v1.orgopenroadmcommontypes.rev20161014.OrgOpenroadmCommonTypes)2 ArrayList (java.util.ArrayList)1 CienaWaveserverPort (org.onosproject.yang.gen.v1.cienawaveserverport.rev20170731.CienaWaveserverPort)1 CienaWaveserverSystem (org.onosproject.yang.gen.v1.cienawaveserversystem.rev20180104.CienaWaveserverSystem)1 IetfSystem (org.onosproject.yang.gen.v1.ietfsystem.rev20140806.IetfSystem)1 OrgOpenroadmCommonServiceTypes (org.onosproject.yang.gen.v1.orgopenroadmcommonservicetypes.rev20161014.OrgOpenroadmCommonServiceTypes)1 OrgOpenroadmDegree (org.onosproject.yang.gen.v1.orgopenroadmdegree.rev20161014.OrgOpenroadmDegree)1 OrgOpenroadmEquipmentStatesTypes (org.onosproject.yang.gen.v1.orgopenroadmequipmentstatestypes.rev20161014.OrgOpenroadmEquipmentStatesTypes)1 OrgOpenroadmExternalPluggable (org.onosproject.yang.gen.v1.orgopenroadmexternalpluggable.rev20161014.OrgOpenroadmExternalPluggable)1 OrgOpenroadmNetwork (org.onosproject.yang.gen.v1.orgopenroadmnetwork.rev20161014.OrgOpenroadmNetwork)1 OrgOpenroadmResource (org.onosproject.yang.gen.v1.orgopenroadmresource.rev20161014.OrgOpenroadmResource)1 OrgOpenroadmResourceTypes (org.onosproject.yang.gen.v1.orgopenroadmresourcetypes.rev20161014.OrgOpenroadmResourceTypes)1 OrgOpenroadmRoadm (org.onosproject.yang.gen.v1.orgopenroadmroadm.rev20161014.OrgOpenroadmRoadm)1