L2 Gw create changes related to ITM Tunnels creation in neutronvpn module
[vpnservice.git] / neutronvpn / neutronvpn-impl / src / main / java / org / opendaylight / yang / gen / v1 / urn / opendaylight / params / xml / ns / yang / neutronvpn / impl / rev150325 / NeutronvpnImplModule.java
1 /*
2  * Copyright (c) 2016 Ericsson India Global Services Pvt Ltd. 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.neutronvpn.impl.rev150325;
10
11 import org.opendaylight.vpnservice.neutronvpn.NeutronvpnProvider;
12 import org.opendaylight.yang.gen.v1.urn.opendaylight.vpnservice.lockmanager.rev150819.LockManagerService;
13
14 public class NeutronvpnImplModule extends org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.neutronvpn
15         .impl.rev150325.AbstractNeutronvpnImplModule {
16     public NeutronvpnImplModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight
17             .controller.config.api.DependencyResolver dependencyResolver) {
18         super(identifier, dependencyResolver);
19     }
20
21     public NeutronvpnImplModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight
22             .controller.config.api.DependencyResolver dependencyResolver, org.opendaylight.yang.gen.v1.urn
23             .opendaylight.params.xml.ns.yang.neutronvpn.impl.rev150325.NeutronvpnImplModule oldModule, java.lang
24             .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         // TODO:implement
36         LockManagerService lockManagerService = getRpcRegistryDependency().getRpcService(LockManagerService.class);
37         NeutronvpnProvider provider = new NeutronvpnProvider(getRpcRegistryDependency());
38         provider.setMdsalManager(getMdsalutilDependency());
39         provider.setLockManager(lockManagerService);
40         provider.setEntityOwnershipService(getEntityOwnershipServiceDependency());
41         provider.setBindingNormalizedNodeSerializer(getBindingNormalizedNodeSerializerDependency());
42         getBrokerDependency().registerProvider(provider);
43         return provider;
44     }
45
46 }