2 * Copyright © 2016 Red Hat, Inc. and others. All rights reserved.
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
9 package org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.netvirt.sfc.impl.rev141210;
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;
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;
20 public NetvirtSfcImplModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) {
21 super(identifier, dependencyResolver);
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);
29 public void customValidation() {
30 // add custom validation form module attributes here.
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);
43 public void setBundleContext(BundleContext bundleContext) {
44 this.bundleContext = bundleContext;