08-04-2017 07:29 AM
Hi Team,
I've observed that when we enable the service mode prior to packet capture, we're not able to start the traffic in normal mode unless we force start the ports for inducing the traffic.
>>> rs = t.set_service_mode(ports = 1, enabled=True)
>>> capture = t.start_capture(rx_ports = 1, limit = 100, mode = 'fixed', bpf_filter='ether src 00:00:00:71:00:01')
>>> t.clear_stats(my_ports)
>>> t.start(ports=my_ports, mult='100mbps', duration=10)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/auto/cenbu/dev-test/ATS_python/regression/Iotssg/lib/trex_client/stl/trex_stl_lib/trex_stl_client.py", line 1208, in wrap2
ret = f(*args, **kwargs)
File "/auto/cenbu/dev-test/ATS_python/regression/Iotssg/lib/trex_client/stl/trex_stl_lib/trex_stl_client.py", line 2765, in start
ports = self.__pre_start_check('START', ports, force)
File "/auto/cenbu/dev-test/ATS_python/regression/Iotssg/lib/trex_client/stl/trex_stl_lib/trex_stl_client.py", line 2709, in __pre_start_check
return self.psv.validate(cmd_name, ports, states)
File "/auto/cenbu/dev-test/ATS_python/regression/Iotssg/lib/trex_client/stl/trex_stl_lib/trex_stl_psv.py", line 152, in validate
self.validators[state].validate(self.client, cmd_name, ports, err_msg)
File "/auto/cenbu/dev-test/ATS_python/regression/Iotssg/lib/trex_client/stl/trex_stl_lib/trex_stl_psv.py", line 29, in validate
raise STLError('{0} - port(s) {1}: {2}'.format(cmd_name, invalid_ports, err_msg))
trex_stl_lib.trex_stl_exceptions.STLError: START - port(s) [1]: cannot be under service mode - please disable service mode or specify 'force'
>>> t.start(ports=my_ports, mult='100mbps', duration=10,force=True)
<trex_stl_lib.trex_stl_types.RC object at 0xf3f7256c>
>>> t.stop_capture(capture['id'],'/auto/cenbu/dev-test/ATS_python/dummy_asp.pcap')
>>> rs = t.set_service_mode(ports = 1, enabled=False)
Regards,
Anurag
08-05-2017 11:26 PM
This is by design. We don’t want you to forget that you are in service mode and performance is impacted
Hanoh
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide