import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.OutputPortValues;
import org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorRef;
import org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeRef;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.BufferId;
import org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.PacketProcessingService;
import org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.TransmitPacketInput;
import org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.TransmitPacketInputBuilder;
packet_out.setNode(ref);
packet_out.setIngress(nIngressConRef);
packet_out.setEgress(nEngressConRef);
- packet_out.setBufferId(Long.valueOf(0xffffffffL));
+ packet_out.setBufferId(new BufferId(0xffffffffL));
packetProcessingService.transmitPacket(packet_out.build());
} else {
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.extension.general.rev140714.GeneralAugMatchNotifPacketIn;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.extension.general.rev140714.GeneralAugMatchNotifPacketInBuilder;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.extension.general.rev140714.GeneralAugMatchNotifUpdateFlowStatsBuilder;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.BufferId;
import org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.ConnectionCookie;
import org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.PacketReceived;
import org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.PacketReceivedBuilder;
if (sc != null && msg instanceof PacketInMessage) {
PacketInMessage message = (PacketInMessage)msg;
- LOG.trace("PacketIn[v{}]: Cookie: {} Match.type: {}",
+ LOG.trace("PacketIn[v{}]: Cookie: {} Match.type: {}, BufferId: {}",
message.getVersion(), message.getCookie(),
- message.getMatch() != null ? message.getMatch().getType() : message.getMatch());
+ message.getMatch() != null ? message.getMatch().getType() : message.getMatch(),
+ message.getBufferId() != null ? message.getBufferId().toString() : "No buffer Id");
// create a packet received event builder
PacketReceivedBuilder pktInBuilder = new PacketReceivedBuilder();
pktInBuilder.setPacketInReason(PacketInUtil.getMdSalPacketInReason(message.getReason()));
pktInBuilder.setTableId(new org.opendaylight.yang.gen.v1.urn.opendaylight.table.types.rev131026.TableId(message.getTableId().getValue().shortValue()));
pktInBuilder.setIngress(InventoryDataServiceUtil.nodeConnectorRefFromDatapathIdPortno(dpid, port, ofVersion));
+ if (message.getBufferId() != null) {
+ pktInBuilder.setBufferId(new BufferId(message.getBufferId()));
+ }
PacketReceived pktInEvent = pktInBuilder.build();
salPacketIn = Collections.<DataObject>singletonList(pktInEvent);
}