blob: 856b9515b951714e0f3f326733c02607eba51c9b [file] [log] [blame]
Toshio Koide80db1842014-08-11 17:08:32 -07001package net.onrc.onos.core.matchaction.action;
2
3import 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
9 * MatchAction, IFlow or Intent class.
10 */
11public 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}