BUG 6396 neutron-ovsdb project migration to blueprint
[groupbasedpolicy.git] / neutron-ovsdb / src / main / java / org / opendaylight / controller / config / yang / config / neutron_ovsdb / impl / NeutronOvsdbInstance.java
1 /*
2  * Copyright (c) 2015 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_ovsdb.impl;
10
11 import org.opendaylight.controller.md.sal.binding.api.DataBroker;
12 import org.opendaylight.groupbasedpolicy.neutron.ovsdb.NeutronOvsdb;
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.endpoint.rev140421.EndpointService;
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.neutron.ovsdb.params.rev160812.IntegrationBridgeSetting;
15
16 public class NeutronOvsdbInstance implements AutoCloseable{
17
18     private NeutronOvsdb neutronOvsdb;
19
20     public NeutronOvsdbInstance(DataBroker dataBroker, EndpointService epService,
21             IntegrationBridgeSetting settings) {
22         neutronOvsdb = new NeutronOvsdb(dataBroker, epService, settings);
23     }
24
25     @Override
26     public void close() throws Exception {
27         neutronOvsdb.close();
28     }
29
30 }