public void setOfMatch(final OFMatch ofMatch) { this.ofMatch = ofMatch.clone(); }
public OFMatchWithSwDpid(final OFMatch ofm, final long swDpid) { this.ofMatch = ofm.clone(); this.switchDataPathId = swDpid; }
@Override public V6Match clone() { V6Match ret = (V6Match) super.clone(); try { if (this.nwSrc != null) { ret.nwSrc = InetAddress.getByAddress(this.nwSrc.getAddress()); } if (this.nwDst != null) { ret.nwDst = InetAddress.getByAddress(this.nwDst.getAddress()); } return ret; } catch (UnknownHostException e) { throw new RuntimeException(e); } }
@Override public V6Match clone() { V6Match ret = (V6Match) super.clone(); try { if (this.nwSrc != null) { ret.nwSrc = (Inet6Address) InetAddress.getByAddress(this.nwSrc.getAddress()); } if (this.nwDst != null) { ret.nwDst = (Inet6Address) InetAddress.getByAddress(this.nwDst.getAddress()); } return ret; } catch (UnknownHostException e) { throw new RuntimeException(e); } }
@Override public OFFlowMod clone() throws CloneNotSupportedException { final OFMatch neoMatch = this.match.clone(); final OFFlowMod flowMod = (OFFlowMod) super.clone(); flowMod.setMatch(neoMatch); final List<OFAction> neoActions = new LinkedList<OFAction>(); for (final OFAction action : this.actions) { neoActions.add(action.clone()); } flowMod.setActions(neoActions); return flowMod; }