/* * Copyright (c) 2015 Brocade Communications Systems, Inc. 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.ovsdb.openstack.netvirt.api; import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev100924.Ipv4Address; import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev100924.MacAddress; import com.google.common.util.concurrent.ListenableFuture; /** * * @author Anil Vishnoi (avishnoi@Brocade.com) * */ public interface GatewayMacResolver { /** * Method will trigger the mac resolution for gateway IP. If user set periodicRefresh to true, * it will periodically trigger the gateway resolution after a specific time interval. If * periodicRefresh is false, it will just do one time gateway resolution. * @param externalNetworkBridgeDpid * @param gatewayIp * @param periodicReferesh * @return */ public ListenableFuture resolveMacAddress( final Long externalNetworkBridgeDpid, final Ipv4Address gatewayIp, final Ipv4Address sourceIpAddress, final MacAddress sourceMacAddress, final Boolean periodicRefresh); /** * Method will stop the periodic refresh of the given gateway ip address. * @param gatewayIp */ public void stopPeriodicReferesh(final Ipv4Address gatewayIp); }