Murat Parlakisik | 3486338 | 2016-12-05 00:53:17 -0800 | [diff] [blame^] | 1 | /** Custom setter that ensures the BundleAdd message inherits the XID from their |
| 2 | * contained message, as per OF Spec 1.4.0: |
| 3 | * <p> |
| 4 | * 7.3.9.6 Adding messages to a bundle |
| 5 | * </p><p> |
| 6 | * Message added in a bundle should have a unique xid to help matching errors to messages, |
| 7 | * and the xid of the bundle add message must be the same. |
| 8 | * </p> |
| 9 | */ |
| 10 | @Override |
| 11 | public OFBundleAddMsg.Builder setData(OFMessage data) { |
| 12 | this.data = data; |
| 13 | this.dataSet = true; |
| 14 | return setXid(data.getXid()); |
| 15 | } |