diff options
author | Yuichi Ito <ito.yuichi0@gmail.com> | 2014-05-27 10:06:18 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2014-05-27 20:24:28 +0900 |
commit | 525a4a11ee06c8aa2d05f77619df8a33a2914ffb (patch) | |
tree | 3fcabc359aa3678c31be3270ec13493649306a60 /doc/source/quantumclient/__init__.py | |
parent | af5267b4abbc41ac4d9facd8ad6ffad23b789aaf (diff) |
sw test tool: Enable sending packets using random values
The switch test tool is now enabled to send packets using random values as follows:
"tests":[
{
"ingress":{
"packets":{
"data":[
"ethernet(dst=netaddr.EUI(randint(0, 2 ** 48 - 1)), ethertype=2048)",
"ipv4(proto=6, src=netaddr.IPAddress(randint(0, 2 ** 32 - 1)))",
"tcp(dst_port=randint(0, 2 ** 16 - 1))",
"str('\\x11' * (1500 - 54))"
],
"pktps":1000,
"duration_time":30
}
},
"egress":{
"throughput":[
{
"OFPMatch":{
"oxm_fields":[
{
"OXMTlv":{
"field":"in_port",
"value":2
}
}
]
},
"kbps":1500
}
]
}
}
]
When ingress.packets.data includes 'randint', the switch test tool will send each packet using random values.
Signed-off-by: Yuichi Ito <ito.yuichi0@gmail.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'doc/source/quantumclient/__init__.py')
0 files changed, 0 insertions, 0 deletions