Toshio Koide | 80db184 | 2014-08-11 17:08:32 -0700 | [diff] [blame] | 1 | package net.onrc.onos.core.matchaction.action; |
| 2 | |
| 3 | import net.floodlightcontroller.util.MACAddress; |
| 4 | |
| 5 | /** |
| 6 | * An action object to modify destination MAC address. |
| 7 | * <p> |
| 8 | * This class does not have a switch ID. The switch ID is handled by |
Toshio Koide | 7894ca0 | 2014-08-15 14:30:13 -0700 | [diff] [blame] | 9 | * MatchAction, Flow or Intent class. |
Toshio Koide | 80db184 | 2014-08-11 17:08:32 -0700 | [diff] [blame] | 10 | */ |
| 11 | public class ModifyDstMacAction implements Action { |
| 12 | private final MACAddress dstMac; |
| 13 | |
| 14 | /** |
| 15 | * Constructor. |
| 16 | * |
| 17 | * @param dstMac destination MAC address after the modification |
| 18 | */ |
| 19 | public ModifyDstMacAction(MACAddress dstMac) { |
| 20 | this.dstMac = dstMac; |
| 21 | } |
| 22 | |
| 23 | /** |
| 24 | * Gets the destination MAC address. |
| 25 | * |
| 26 | * @return the destination MAC address |
| 27 | */ |
| 28 | public MACAddress getDstMac() { |
| 29 | return dstMac; |
| 30 | } |
| 31 | |
| 32 | } |