2 * Copyright (c) 2016 Ericsson India Global Services Pvt Ltd. and others. All rights reserved.
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
8 package org.opendaylight.netvirt.natservice.internal;
10 import org.opendaylight.mdsal.binding.util.Datastore.Configuration;
11 import org.opendaylight.mdsal.binding.util.TypedReadWriteTransaction;
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.netvirt.natservice.rev160111.ProviderTypes;
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.natservice.rev160111.floating.ip.info.router.ports.ports.InternalToExternalPortMap;
15 import org.opendaylight.yangtools.yang.common.Uint32;
16 import org.opendaylight.yangtools.yang.common.Uint64;
18 public interface FloatingIPHandler {
20 void onAddFloatingIp(Uint64 dpnId, String routerUuid, Uint32 routerId, Uuid networkId, String interfaceName,
21 InternalToExternalPortMap mapping, String vrfId,
22 TypedReadWriteTransaction<Configuration> confTx);
24 void onRemoveFloatingIp(Uint64 dpnId, String routerUuid, Uint32 routerId, Uuid networkId,
25 InternalToExternalPortMap mapping, Uint32 label, String vrfId,
26 TypedReadWriteTransaction<Configuration> confTx);
28 void cleanupFibEntries(Uint64 dpnId, String vpnName, String externalIp, Uint32 label, String vrfId,
29 TypedReadWriteTransaction<Configuration> confTx, ProviderTypes provType);