blob: 0a59131a0f1c19665ffa8e0179961ce4a50b56e2 [file] [log] [blame]
Murat Parlakisik34863382016-12-05 00:53:17 -08001 /** 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 }