1 package org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.vbd.impl.rev160202;
3 import io.fd.honeycomb.vbd.impl.VirtualBridgeDomainManager;
4 import org.opendaylight.controller.md.sal.binding.api.DataBroker;
5 import org.opendaylight.controller.md.sal.binding.api.MountPointService;
6 import org.opendaylight.controller.sal.binding.api.BindingAwareBroker;
8 public class VbdModule extends org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.vbd.impl.rev160202.AbstractVbdModule {
9 public VbdModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) {
10 super(identifier, dependencyResolver);
13 public VbdModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver, org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.vbd.impl.rev160202.VbdModule oldModule, java.lang.AutoCloseable oldInstance) {
14 super(identifier, dependencyResolver, oldModule, oldInstance);
18 public void customValidation() {
19 // add custom validation form module attributes here.
23 public java.lang.AutoCloseable createInstance() {
24 final BindingAwareBroker brokerDependency = getBrokerDependency();
25 BindingAwareBroker.ProviderContext session = brokerDependency.registerProvider(new VbdProvider());
27 DataBroker dataBroker = session.getSALService(DataBroker.class);
28 MountPointService mountService = session.getSALService(MountPointService.class);
29 return VirtualBridgeDomainManager.create(dataBroker, mountService);