move vpnservice and cleanup poms
[netvirt.git] / natservice / natservice-impl / src / main / java / org / opendaylight / netvirt / natservice / internal / FloatingIPHandler.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 package org.opendaylight.netvirt.natservice.internal;
9
10 import java.math.BigInteger;
11
12 import org.opendaylight.controller.md.sal.binding.api.WriteTransaction;
13 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid;
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.natservice.rev160111.ProviderTypes;
15 import org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.natservice.rev160111.floating.ip.info.router.ports.ports.InternalToExternalPortMap;
16
17 public interface FloatingIPHandler {
18
19     void onAddFloatingIp(BigInteger dpnId, String routerUuid, long routerId, Uuid networkId, String interfaceName,
20                          InternalToExternalPortMap mapping, WriteTransaction writeFlowInvTx);
21
22     void onRemoveFloatingIp(BigInteger dpnId, String routerUuid, long routerId, Uuid networkId,
23                             InternalToExternalPortMap mapping, long label, WriteTransaction removeFlowInvTx);
24
25     void cleanupFibEntries(BigInteger dpnId, String vpnName, String externalIp, long label,
26                            WriteTransaction removeFlowInvTx, ProviderTypes provType);
27 }