BUG 6396 neutron-vpp-mapper project migration to blueprint
[groupbasedpolicy.git] / neutron-vpp-mapper / src / main / java / org / opendaylight / controller / config / yang / config / neutron_vpp_mapper / impl / NeutronVppMapperInstance.java
1 /*
2  * Copyright (c) 2016 Cisco Systems, 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.controller.config.yang.config.neutron_vpp_mapper.impl;
10
11 import org.opendaylight.controller.md.sal.binding.api.DataBroker;
12 import org.opendaylight.groupbasedpolicy.neutron.vpp.mapper.NeutronVppMapper;
13
14 public class NeutronVppMapperInstance implements AutoCloseable{
15
16     private NeutronVppMapper mapper;
17
18     public NeutronVppMapperInstance (DataBroker dataBroker, String socketPath, String socketPrefix) {
19         mapper = new NeutronVppMapper(socketPath, socketPrefix, dataBroker);
20     }
21
22     @Override
23     public void close() throws Exception {
24         mapper.close();
25     }
26 }