Search in sources :

Example 1 with YangModuleCapability

use of org.opendaylight.controller.config.util.capability.YangModuleCapability in project controller by opendaylight.

the class ConfigSubsystemFacadeFactory method getCurrentCapabilities.

public Set<Capability> getCurrentCapabilities() {
    Set<Module> modules = yangStoreService.getModules();
    final Set<Capability> capabilities = Sets.newHashSet();
    for (Module module : modules) {
        capabilities.add(new YangModuleCapability(module, yangStoreService.getModuleSource(RevisionSourceIdentifier.create(module.getName(), module.getRevision()))));
    }
    return capabilities;
}
Also used : Capability(org.opendaylight.controller.config.util.capability.Capability) YangModuleCapability(org.opendaylight.controller.config.util.capability.YangModuleCapability) Module(org.opendaylight.yangtools.yang.model.api.Module) YangModuleCapability(org.opendaylight.controller.config.util.capability.YangModuleCapability)

Aggregations

Capability (org.opendaylight.controller.config.util.capability.Capability)1 YangModuleCapability (org.opendaylight.controller.config.util.capability.YangModuleCapability)1 Module (org.opendaylight.yangtools.yang.model.api.Module)1