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;
}
Aggregations