/* * Copyright (c) 2016 Ericsson India Global Services Pvt Ltd. and others. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html */ package org.opendaylight.netvirt.neutronvpn.interfaces; import java.util.Collection; import java.util.List; import java.util.concurrent.ExecutionException; import org.opendaylight.controller.md.sal.common.api.data.ReadFailedException; import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress; import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid; import org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.networks.rev150712.networks.attributes.networks.Network; import org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.ports.rev150712.ports.attributes.ports.Port; import org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.subnets.rev150712.subnets.attributes.subnets.Subnet; public interface INeutronVpnManager { void addSubnetToVpn(Uuid vpnId, Uuid subnet); void removeSubnetFromVpn(Uuid vpnId, Uuid subnet); List showVpnConfigCLI(Uuid vuuid) throws InterruptedException, ExecutionException; List showNeutronPortsCLI() throws ReadFailedException; Network getNeutronNetwork(Uuid networkId); Port getNeutronPort(String name); Port getNeutronPort(Uuid portId); Subnet getNeutronSubnet(Uuid subnetId); IpAddress getNeutronSubnetGateway(Uuid subnetId); Collection getSubnetIdsForGatewayIp(IpAddress ipAddress); Uuid getNetworkForSubnet(Uuid subnetId); List getNetworksForVpn(Uuid vpnId); String getOpenDaylightVniRangesConfig(); void programV6InternetFallbackFlow(Uuid routerId, Uuid internetVpnId, int addOrRemove); }