Migrate lisp-proto implementation to IETF YANG model
[lispflowmapping.git] / mappingservice / southbound / src / main / java / org / opendaylight / controller / config / yang / config / lisp_sb / impl / LfmMappingServiceSbModule.java
1 package org.opendaylight.controller.config.yang.config.lisp_sb.impl;
2
3 import org.opendaylight.lispflowmapping.southbound.LispSouthboundPlugin;
4 import org.slf4j.Logger;
5 import org.slf4j.LoggerFactory;
6
7 public class LfmMappingServiceSbModule extends org.opendaylight.controller.config.yang.config.lisp_sb.impl.AbstractLfmMappingServiceSbModule {
8     private final static Logger LOG = LoggerFactory.getLogger(LfmMappingServiceSbModule.class);
9     private LispSouthboundPlugin sbPlugin;
10
11     public LfmMappingServiceSbModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) {
12         super(identifier, dependencyResolver);
13     }
14
15     public LfmMappingServiceSbModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver, org.opendaylight.controller.config.yang.config.lisp_sb.impl.LfmMappingServiceSbModule oldModule, java.lang.AutoCloseable oldInstance) {
16         super(identifier, dependencyResolver, oldModule, oldInstance);
17     }
18
19     @Override
20     public void customValidation() {
21         // add custom validation form module attributes here.
22     }
23
24     @Override
25     public java.lang.AutoCloseable createInstance() {
26         LOG.debug("LfmMappingServiceSb Module up!");
27
28         sbPlugin = new LispSouthboundPlugin();
29         sbPlugin.setNotificationPublishService(getNotificationPublishServiceDependency());
30         sbPlugin.setRpcRegistryDependency(getRpcRegistryDependency());
31         sbPlugin.setBindingAwareBroker(getBrokerDependency());
32         sbPlugin.init();
33
34         return sbPlugin;
35     }
36
37 }