packet_data_generator: use utf-8 in table name and port name

actually uses non-ascii characters in some places.

Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
YAMAMOTO Takashi 2013-09-04 16:04:38 +09:00 committed by FUJITA Tomonori
parent 35f7c1230d
commit 31f8a21d37
2 changed files with 4 additions and 4 deletions

View File

@ -279,7 +279,7 @@ x() ->
flags = [],
stats =
[#ofp_table_stats{
table_id = 0,name = <<"Flow Table 0x00">>,
table_id = 0,name = <<"\xe7\xa7\x81\xe3\x81\xae\xe3\x83\x86\xe3\x83\xbc\xe3\x83\x96\xe3\x83\xab">>, % "my table" in japanese, utf-8
match =
[in_port,metadata,eth_dst,eth_src,eth_type,vlan_vid,
vlan_pcp,ip_dscp,ip_ecn,ip_proto,ipv4_src,ipv4_dst,tcp_src,
@ -8511,7 +8511,7 @@ x() ->
reason = add,
desc = #ofp_port{
port_no = 7,hw_addr = <<"\362\v\244\320?p">>,
name = <<"Port7">>,
name = <<"\xe7\xa7\x81\xe3\x81\xae\xe3\x83\x9d\xe3\x83\xbc\xe3\x83\x88">>, % "my port" in japanese, utf-8
config = [],
state = [live],
curr = ['100mb_fd',copper,autoneg],

View File

@ -338,7 +338,7 @@ x() ->
reason = add,
desc = #ofp_port{
port_no = 7,hw_addr = <<"\362\v\244\320?p">>,
name = <<"Port7">>,
name = <<"\xe7\xa7\x81\xe3\x81\xae\xe3\x83\x9d\xe3\x83\xbc\xe3\x83\x88">>, % "my port" in japanese, utf-8
config = [],
state = [live],
curr = ['100mb_fd',copper,autoneg],
@ -1394,7 +1394,7 @@ x() ->
flags = [more],
body =
[#ofp_table_features{
table_id = 0,name = <<"Flow Table 0x00">>,
table_id = 0,name = <<"\xe7\xa7\x81\xe3\x81\xae\xe3\x83\x86\xe3\x83\xbc\xe3\x83\x96\xe3\x83\xab">>, % "my table" in japanese, utf-8
metadata_match = <<"\377\377\377\377\377\377\377\377">>,
metadata_write = <<"\377\377\377\377\377\377\377\377">>,max_entries = 16777216,
properties =