From 77bda644199d821dfd07cbe24d6f58bf00363876 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Mon, 26 Aug 2013 15:34:30 +0900 Subject: [PATCH] packet_data_generator: fix port names these broken names were come from the bug in LINC. https://github.com/FlowForwarding/LINC-Switch/pull/133 Signed-off-by: YAMAMOTO Takashi Signed-off-by: FUJITA Tomonori --- ryu/tests/packet_data_generator/src/x1.erl | 4 ++-- ryu/tests/packet_data_generator/src/x3.erl | 6 +++--- ryu/tests/packet_data_generator/src/x4.erl | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ryu/tests/packet_data_generator/src/x1.erl b/ryu/tests/packet_data_generator/src/x1.erl index 4dda6ebc..ff5d4fb3 100644 --- a/ryu/tests/packet_data_generator/src/x1.erl +++ b/ryu/tests/packet_data_generator/src/x1.erl @@ -70,7 +70,7 @@ x() -> ports = [#ofp_phy_port{ port_no = 7,hw_addr = <<"\362\v\244\320?p">>, - name = <<80,111,114,116,7>>, + name = <<"Port7">>, config = [], state = [stp_block], curr = [autoneg,copper,'100mb_fd'], @@ -79,7 +79,7 @@ x() -> peer = [autoneg,copper,'100mb_fd']}, #ofp_phy_port{ port_no = 6,hw_addr = <<"\362\v\244}\370\352">>, - name = <<80,111,114,116,6>>, + name = <<"Port6">>, config = [], state = [stp_listen], curr = [autoneg,copper,'100mb_fd'], diff --git a/ryu/tests/packet_data_generator/src/x3.erl b/ryu/tests/packet_data_generator/src/x3.erl index 6f608acc..c45aba0a 100644 --- a/ryu/tests/packet_data_generator/src/x3.erl +++ b/ryu/tests/packet_data_generator/src/x3.erl @@ -139,7 +139,7 @@ x() -> ports = [#ofp_port{ port_no = 7,hw_addr = <<"\362\v\244\320?p">>, - name = <<80,111,114,116,7>>, + name = <<"Port7">>, config = [], state = [live], curr = ['100mb_fd',copper,autoneg], @@ -149,7 +149,7 @@ x() -> curr_speed = 5000,max_speed = 5000}, #ofp_port{ port_no = 6,hw_addr = <<"\362\v\244}\370\352">>, - name = <<80,111,114,116,6>>, + name = <<"Port6">>, config = [], state = [live], curr = ['100mb_fd',copper,autoneg], @@ -8511,7 +8511,7 @@ x() -> reason = add, desc = #ofp_port{ port_no = 7,hw_addr = <<"\362\v\244\320?p">>, - name = <<80,111,114,116,7>>, + name = <<"Port7">>, config = [], state = [live], curr = ['100mb_fd',copper,autoneg], diff --git a/ryu/tests/packet_data_generator/src/x4.erl b/ryu/tests/packet_data_generator/src/x4.erl index c87dcb1c..7c0d212c 100644 --- a/ryu/tests/packet_data_generator/src/x4.erl +++ b/ryu/tests/packet_data_generator/src/x4.erl @@ -338,7 +338,7 @@ x() -> reason = add, desc = #ofp_port{ port_no = 7,hw_addr = <<"\362\v\244\320?p">>, - name = <<80,111,114,116,7>>, + name = <<"Port7">>, config = [], state = [live], curr = ['100mb_fd',copper,autoneg],