Jonathan Hart | 7804bea | 2014-01-07 10:50:52 -0800 | [diff] [blame^] | 1 | package net.onrc.onos.ofcontroller.proxyarp; |
| 2 | |
| 3 | /** |
| 4 | * Notification to another ONOS instance to send a packet out a single port. |
| 5 | * |
| 6 | */ |
| 7 | public class SinglePacketOutNotification extends PacketOutNotification { |
| 8 | |
| 9 | private static final long serialVersionUID = 1L; |
| 10 | |
| 11 | private final long outSwitch; |
| 12 | private final short outPort; |
| 13 | |
| 14 | public SinglePacketOutNotification(byte[] packet, long outSwitch, |
| 15 | short outPort) { |
| 16 | super(packet); |
| 17 | |
| 18 | this.outSwitch = outSwitch; |
| 19 | this.outPort = outPort; |
| 20 | } |
| 21 | |
| 22 | public long getOutSwitch() { |
| 23 | return outSwitch; |
| 24 | } |
| 25 | |
| 26 | public short getOutPort() { |
| 27 | return outPort; |
| 28 | } |
| 29 | |
| 30 | } |