Merge "OVS 2.5.1 docker image in fig.yml"
[netvirt.git] / openstack / net-virt-sfc / impl / src / main / java / org / opendaylight / yang / gen / v1 / urn / opendaylight / params / xml / ns / yang / netvirt / sfc / impl / rev141210 / NetvirtSfcImplModule.java
1 /*
2  * Copyright © 2016 Red Hat, Inc. and others. All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8
9 package org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.netvirt.sfc.impl.rev141210;
10
11 import org.opendaylight.ovsdb.openstack.netvirt.sfc.NetvirtSfcProvider;
12 import org.osgi.framework.BundleContext;
13 import org.slf4j.Logger;
14 import org.slf4j.LoggerFactory;
15
16 public class NetvirtSfcImplModule extends org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.netvirt.sfc.impl.rev141210.AbstractNetvirtSfcImplModule {
17     private static final Logger LOG = LoggerFactory.getLogger(NetvirtSfcImplModule.class);
18     private BundleContext bundleContext;
19
20     public NetvirtSfcImplModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) {
21         super(identifier, dependencyResolver);
22     }
23
24     public NetvirtSfcImplModule(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.netvirt.sfc.impl.rev141210.NetvirtSfcImplModule oldModule, java.lang.AutoCloseable oldInstance) {
25         super(identifier, dependencyResolver, oldModule, oldInstance);
26     }
27
28     @Override
29     public void customValidation() {
30         // add custom validation form module attributes here.
31     }
32
33     @Override
34     public java.lang.AutoCloseable createInstance() {
35         LOG.info("Netvirt SFC module initialization.");
36         NetvirtSfcProvider sfcProvider = new NetvirtSfcProvider(bundleContext);
37         sfcProvider.setOf13Provider(getOf13provider());
38         sfcProvider.setAddSfFlows(getAddsfflows());
39         getBrokerDependency().registerProvider(sfcProvider);
40         return sfcProvider;
41     }
42
43     public void setBundleContext(BundleContext bundleContext) {
44         this.bundleContext = bundleContext;
45     }
46 }