blob: 47e0d4481a1d9787be8ea44d1b8ef9a328b5b49f [file] [log] [blame]
package net.onrc.onos.core.matchaction.action;
import net.floodlightcontroller.util.MACAddress;
/**
* An action object to modify destination MAC address.
* <p>
* This class does not have a switch ID. The switch ID is handled by
* MatchAction, Flow or Intent class.
*/
public class ModifyDstMacAction implements Action {
private final MACAddress dstMac;
/**
* Constructor.
*
* @param dstMac destination MAC address after the modification
*/
public ModifyDstMacAction(MACAddress dstMac) {
this.dstMac = dstMac;
}
/**
* Gets the destination MAC address.
*
* @return the destination MAC address
*/
public MACAddress getDstMac() {
return dstMac;
}
}