From 81322b7a0a15ee43ffbc476fb05c8b3e546e27eb Mon Sep 17 00:00:00 2001 From: "watanabe.fumitaka" Date: Tue, 25 Feb 2014 14:16:04 +0900 Subject: [PATCH] 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 Signed-off-by: FUJITA Tomonori --- ryu/tests/switch/tester.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ryu/tests/switch/tester.py b/ryu/tests/switch/tester.py index 90bc5aa6..f1c132f2 100644 --- a/ryu/tests/switch/tester.py +++ b/ryu/tests/switch/tester.py @@ -545,7 +545,8 @@ class OfTester(app_manager.RyuApp): def _test_unmatch_packet_send(self, pkt): # Send a packet from the OpenFlow Switch. 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. xid = self.tester_sw.send_barrier_request()