8da26707adc59ec95c917b4fe6f3d68b30cd613a
[vpnservice.git] / neutronvpn / neutronvpn-api / src / main / java / org / opendaylight / vpnservice / neutronvpn / interfaces / INeutronVpnManager.java
1 /*
2  * Copyright (c) 2015 - 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.vpnservice.neutronvpn.interfaces;
10
11 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev100924.IpAddress;
12 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid;
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.ports.rev150712.ports.attributes.ports.Port;
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.subnets.rev150712.subnets.attributes.subnets.Subnet;
15
16 import java.util.List;
17
18 public interface INeutronVpnManager {
19
20     public void addSubnetToVpn(Uuid vpnId, Uuid subnet);
21
22     public void removeSubnetFromVpn(Uuid vpnId, Uuid subnet);
23
24     public List<Uuid> getSubnetsforVpn(Uuid vpnid);
25
26     List<String> showVpnConfigCLI(Uuid vuuid);
27
28     List<String> showNeutronPortsCLI();
29
30     public Port getNeutronPort(String name);
31
32     public Subnet getNeutronSubnet(Uuid subnetId);
33
34     public String uuidToTapPortName(Uuid id);
35
36     public Port getNeutronPort(Uuid portId);
37
38     public IpAddress getNeutronSubnetGateway(Uuid subnetId);
39
40 }