sw test tool: fix missing to receive error of PacketOut

Since transaction ID of PacketOut message is not hold,
 an error message to this PacketOut is not able to be received.
This patch fixes it.

Signed-off-by: WATANABE Fumitaka <watanabe.fumitaka1@gmail.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
watanabe.fumitaka 2014-02-25 14:16:04 +09:00 committed by FUJITA Tomonori
parent 98f5c2aad0
commit 81322b7a0a

View File

@ -545,7 +545,8 @@ class OfTester(app_manager.RyuApp):
def _test_unmatch_packet_send(self, pkt): def _test_unmatch_packet_send(self, pkt):
# Send a packet from the OpenFlow Switch. # Send a packet from the OpenFlow Switch.
self.logger.debug("send_packet:[%s]", packet.Packet(pkt[KEY_INGRESS])) self.logger.debug("send_packet:[%s]", packet.Packet(pkt[KEY_INGRESS]))
self.tester_sw.send_packet_out(pkt[KEY_INGRESS]) xid = self.tester_sw.send_packet_out(pkt[KEY_INGRESS])
self.send_msg_xids.append(xid)
# Wait OFPBarrierReply. # Wait OFPBarrierReply.
xid = self.tester_sw.send_barrier_request() xid = self.tester_sw.send_barrier_request()