Jonathan Hart | 309889c | 2013-08-13 23:26:24 +1200 | [diff] [blame^] | 1 | package net.onrc.onos.ofcontroller.bgproute; |
| 2 | |
| 3 | import org.openflow.protocol.OFFlowMod; |
| 4 | |
| 5 | public class PushedFlowMod { |
| 6 | private long dpid; |
| 7 | private OFFlowMod flowMod; |
| 8 | |
| 9 | public PushedFlowMod(long dpid, OFFlowMod flowMod) { |
| 10 | this.dpid = dpid; |
| 11 | try { |
| 12 | this.flowMod = flowMod.clone(); |
| 13 | } catch (CloneNotSupportedException e) { |
| 14 | this.flowMod = flowMod; |
| 15 | } |
| 16 | } |
| 17 | |
| 18 | public long getDpid() { |
| 19 | return dpid; |
| 20 | } |
| 21 | |
| 22 | public OFFlowMod getFlowMod() { |
| 23 | return flowMod; |
| 24 | } |
| 25 | } |