VPNv6 external network support for multiple router
[netvirt.git] / neutronvpn / api / src / main / java / org / opendaylight / netvirt / neutronvpn / interfaces / INeutronVpnManager.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.netvirt.neutronvpn.interfaces;
10
11 import java.util.Collection;
12 import java.util.List;
13 import java.util.concurrent.ExecutionException;
14 import org.opendaylight.controller.md.sal.common.api.data.ReadFailedException;
15 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress;
16 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid;
17 import org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.networks.rev150712.networks.attributes.networks.Network;
18 import org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.ports.rev150712.ports.attributes.ports.Port;
19 import org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.subnets.rev150712.subnets.attributes.subnets.Subnet;
20
21 public interface INeutronVpnManager {
22
23     void addSubnetToVpn(Uuid vpnId, Uuid subnet);
24
25     void removeSubnetFromVpn(Uuid vpnId, Uuid subnet);
26
27     List<String> showVpnConfigCLI(Uuid vuuid) throws InterruptedException, ExecutionException;
28
29     List<String> showNeutronPortsCLI() throws ReadFailedException;
30
31     Network getNeutronNetwork(Uuid networkId);
32
33     Port getNeutronPort(String name);
34
35     Port getNeutronPort(Uuid portId);
36
37     Subnet getNeutronSubnet(Uuid subnetId);
38
39     IpAddress getNeutronSubnetGateway(Uuid subnetId);
40
41     Collection<Uuid> getSubnetIdsForGatewayIp(IpAddress ipAddress);
42
43     Uuid getNetworkForSubnet(Uuid subnetId);
44
45     List<Uuid> getNetworksForVpn(Uuid vpnId);
46
47     String getOpenDaylightVniRangesConfig();
48
49     void programV6InternetFallbackFlow(Uuid routerId, Uuid internetVpnId, int addOrRemove);
50
51 }
52