Search in sources :

Example 1 with DeleteL2GwDeviceMacsFromElanJob

use of org.opendaylight.netvirt.elan.l2gw.jobs.DeleteL2GwDeviceMacsFromElanJob in project netvirt by opendaylight.

the class ElanL2GatewayUtils method unInstallL2GwUcastMacFromL2gwDevices.

/**
 * Uninstall l2gw macs from other l2gw devices in the elanName provided.
 * @param elanName - Elan Name for which other l2gw devices will be scanned.
 * @param l2GwDevice - l2gwDevice whose macs are required to be cleared from other devices.
 * @param macAddresses - Mac address to be cleared.
 */
public void unInstallL2GwUcastMacFromL2gwDevices(final String elanName, final L2GatewayDevice l2GwDevice, final Collection<MacAddress> macAddresses) {
    if (macAddresses == null || macAddresses.isEmpty()) {
        return;
    }
    if (elanName == null) {
        return;
    }
    DeleteL2GwDeviceMacsFromElanJob job = new DeleteL2GwDeviceMacsFromElanJob(elanName, l2GwDevice, macAddresses);
    elanClusterUtils.runOnlyInOwnerNode(job.getJobKey(), "delete remote ucast macs in l2gw devices", job);
}
Also used : DeleteL2GwDeviceMacsFromElanJob(org.opendaylight.netvirt.elan.l2gw.jobs.DeleteL2GwDeviceMacsFromElanJob)

Aggregations

DeleteL2GwDeviceMacsFromElanJob (org.opendaylight.netvirt.elan.l2gw.jobs.DeleteL2GwDeviceMacsFromElanJob)1