sw test tool: Enable sending packets using random values
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 <7a83edf5b53f0b21d4182a3da7518164ce03dc3a@gmail.com>
Signed-off-by: FUJITA Tomonori <93dac1fe9c4b2a3957982200319981492ad4976e@lab.ntt.co.jp>

diogommartins/ryu,Tesi-Luca-Davide/ryu,osrg/ryu,muzixing/ryu,OpenState-SDN/ryu,alanquillin/ryu,Zouyiran/ryu,Tesi-Luca-Davide/ryu,pichuang/ryu,diogommartins/ryu,sivaramakrishnansr/ryu,muzixing/ryu,Zouyiran/ryu,zangree/ryu,darjus-amzn/ryu,castroflavio/ryu,muzixing/ryu,castroflavio/ryu,TakeshiTseng/ryu,jazzmes/ryu,takahashiminoru/ryu,elahejalalpour/ELRyu,TakeshiTseng/ryu,alyosha1879/ryu,gareging/SDN_Framework,gareging/SDN_Framework,StephenKing/ryu,zyq001/ryu,haniehrajabi/ryu,pichuang/ryu,evanscottgray/ryu,fujita/ryu,iwaseyusuke/ryu,iwaseyusuke/ryu,alanquillin/ryu,shinpeimuraoka/ryu,ynkjm/ryu,ysywh/ryu,openvapour/ryu,John-Lin/ryu,lzppp/mylearning,shinpeimuraoka/ryu,muzixing/ryu,StephenKing/summerschool-2015-ryu,lsqtongxin/ryu,lagopus/ryu-lagopus-ext,osrg/ryu,jalilm/ryu,OpenState-SDN/ryu,lagopus/ryu-lagopus-ext,darjus-amzn/ryu,darjus-amzn/ryu,lagopus/ryu-lagopus-ext,hisaharu/ryu,jkoelker/ryu,zangree/ryu,fkakuma/ryu,haniehrajabi/ryu,elahejalalpour/ELRyu,diogommartins/ryu,hisaharu/ryu,torufuru/oolhackathon,lagopus/ryu-lagopus-ext,Tejas-Subramanya/RYU_MEC,darjus-amzn/ryu,zangree/ryu,Tesi-Luca-Davide/ryu,StephenKing/summerschool-2015-ryu,habibiefaried/ryu,pichuang/ryu,lsqtongxin/ryu,elahejalalpour/ELRyu,ynkjm/ryu,Zouyiran/ryu,gopchandani/ryu,gareging/SDN_Framework,StephenKing/ryu,jazzmes/ryu,alanquillin/ryu,TakeshiTseng/ryu,Tejas-Subramanya/RYU_MEC,ttsubo/ryu,StephenKing/ryu,diogommartins/ryu,umkcdcrg01/ryu_openflow,castroflavio/ryu,muzixing/ryu,shinpeimuraoka/ryu,lzppp/mylearning,habibiefaried/ryu,fujita/ryu,takahashiminoru/ryu,John-Lin/ryu,lsqtongxin/ryu,torufuru/oolhackathon,jalilm/ryu,ysywh/ryu,lsqtongxin/ryu,fkakuma/ryu,zyq001/ryu,Zouyiran/ryu,gopchandani/ryu,openvapour/ryu,alyosha1879/ryu,Tejas-Subramanya/RYU_MEC,takahashiminoru/ryu,sivaramakrishnansr/ryu,osrg/ryu,alyosha1879/ryu,umkcdcrg01/ryu_openflow,elahejalalpour/ELRyu,ynkjm/ryu,haniehrajabi/ryu,zangree/ryu,zangree/ryu,StephenKing/summerschool-2015-ryu,jalilm/ryu,pichuang/ryu,habibiefaried/ryu,lsqtongxin/ryu,iwaseyusuke/ryu,openvapour/ryu,TakeshiTseng/ryu,shinpeimuraoka/ryu,OpenState-SDN/ryu,Tejas-Subramanya/RYU_MEC,ysywh/ryu,habibiefaried/ryu,zyq001/ryu,diogommartins/ryu,ttsubo/ryu,habibiefaried/ryu,lzppp/mylearning,openvapour/ryu,Tejas-Subramanya/RYU_MEC,hisaharu/ryu,Tesi-Luca-Davide/ryu,ysywh/ryu,zyq001/ryu,gareging/SDN_Framework,gopchandani/ryu,jkoelker/ryu,yamt/ryu,osrg/ryu,darjus-amzn/ryu,yamt/ryu,lagopus/ryu-lagopus-ext,iwaseyusuke/ryu,StephenKing/summerschool-2015-ryu,openvapour/ryu,lzppp/mylearning,sivaramakrishnansr/ryu,jalilm/ryu,haniehrajabi/ryu,lzppp/mylearning,fujita/ryu,StephenKing/summerschool-2015-ryu,gareging/SDN_Framework,jkoelker/ryu,StephenKing/ryu,John-Lin/ryu,jalilm/ryu,gopchandani/ryu,fkakuma/ryu,gopchandani/ryu,alanquillin/ryu,takahashiminoru/ryu,alyosha1879/ryu,ynkjm/ryu,ysywh/ryu,jazzmes/ryu,haniehrajabi/ryu,yamt/ryu,Tesi-Luca-Davide/ryu,John-Lin/ryu,ttsubo/ryu,sivaramakrishnansr/ryu,torufuru/oolhackathon,sivaramakrishnansr/ryu,yamt/ryu,Zouyiran/ryu,John-Lin/ryu,TakeshiTseng/ryu,zyq001/ryu,alanquillin/ryu,fujita/ryu,umkcdcrg01/ryu_openflow,evanscottgray/ryu,takahashiminoru/ryu,hisaharu/ryu,elahejalalpour/ELRyu,fkakuma/ryu,umkcdcrg01/ryu_openflow,pichuang/ryu,hisaharu/ryu,iwaseyusuke/ryu,osrg/ryu,fujita/ryu,yamt/ryu,ynkjm/ryu,shinpeimuraoka/ryu,StephenKing/ryu,fkakuma/ryu,umkcdcrg01/ryu_openflow,OpenState-SDN/ryu,ttsubo/ryu,ttsubo/ryu,evanscottgray/ryu,OpenState-SDN/ryu