From: bmichalo Date: Wed, 30 Nov 2016 14:56:38 +0000 (-0500) Subject: pkt_gen: MoonGen updated to keep parity with master X-Git-Tag: danube.1.RC1~58^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F53%2F25253%2F2;p=vswitchperf.git pkt_gen: MoonGen updated to keep parity with master Need to make VSPERF's MoonGen codebase in parity with master emmerich MoonGen branch. JIRA: VSPERF-400 Change-Id: I8c50ed89c9e7b0080497107c1af826f49c1e82f0 Signed-off-by: bmichalo --- diff --git a/docs/configguide/trafficgen.rst b/docs/configguide/trafficgen.rst index efcc4d83..3d0cfc66 100644 --- a/docs/configguide/trafficgen.rst +++ b/docs/configguide/trafficgen.rst @@ -443,23 +443,22 @@ https://github.com/emmericp/MoonGen * Note: Today, MoonGen with VSPERF only supports 10Gbps line speeds. -For VSPerf use, MoonGen should be cloned from here (as opposed to the previously -mentioned GitHub): +For VSPERF use, MoonGen should be cloned from here (as opposed to the +previously mentioned GitHub): -git clone https://github.com/atheurer/MoonGen +git clone https://github.com/atheurer/lua-trafficgen -and use the opnfv-stable branch: +and use the master branch: -git checkout opnfv-stable +git checkout master -VSPerf uses a particular example script under the examples directory within -the MoonGen project: +VSPERF uses a particular Lua script with the MoonGen project: -MoonGen/examples/opnfv-vsperf.lua +trafficgen.lua -Follow MoonGen set up instructions here: +Follow MoonGen set up and execution instructions here: -https://github.com/atheurer/MoonGen/blob/opnfv-stable/MoonGenSetUp.html +https://github.com/atheurer/lua-trafficgen/blob/master/README.md Note one will need to set up ssh login to not use passwords between the server running MoonGen and the device under test (running the VSPERF test diff --git a/tools/pkt_gen/moongen/moongen.py b/tools/pkt_gen/moongen/moongen.py index fe3aca52..7fd67661 100644 --- a/tools/pkt_gen/moongen/moongen.py +++ b/tools/pkt_gen/moongen/moongen.py @@ -222,7 +222,7 @@ class Moongen(ITrafficGenerator): "@" + self._moongen_host_ip_addr cmd_find_moongen = connect_moongen + " ls " + \ - self._moongen_base_dir + "/examples/opnfv-vsperf.lua" + self._moongen_base_dir + "/trafficgen.lua" find_moongen = subprocess.Popen(cmd_find_moongen, shell=True, @@ -367,7 +367,7 @@ class Moongen(ITrafficGenerator): self._moongen_host_ip_addr cmd_moongen = " 'cd " + self._moongen_base_dir + \ - "; ./build/MoonGen examples/opnfv-vsperf.lua | tee moongen_log.txt'" + "; ./MoonGen/build/MoonGen trafficgen.lua | tee moongen_log.txt'" cmd_start_moongen = connect_moongen + cmd_moongen