-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Labels
regressionissue found in regressionissue found in regression
Description
Build: 2023-09-27-0724
Test results will be automatically removed in 14 days
device = [Ixia Traffic Generator: 10.36.118.111], config_file_name = None
streams = {"['10.36.118.199:1:10_1.1.1.3/24', '10.36.118.199:1:11_1.1.1.4/24', '10.36.118.199:1:12_1.1.1.5/24'] -> Broadcast": {..., '10.36.118.199:1:11_1.1.1.4/24', '10.36.118.199:1:12_1.1.1.5/24'], 'ip_source': '10.36.118.199:1:9_1.1.1.2/24', ...}}
force_update = True
async def tgen_utils_setup_streams(device, config_file_name, streams, force_update=True):
"""
- if there is a tgen config file then try to load it
- else creates the streams and saves it and download a copy for future use.
- start the protocols and resolve arp.
"""
res = -1
if not force_update and os.path.exists(config_file_name):
device.applog.info(f'Loading Tgen config file {config_file_name}')
out = await TrafficGen.load_config(
input_data=[{device.host_name: [{'config_file_name': config_file_name}]}]
)
res = out[0][device.host_name]['rc']
if res != 0:
for s in streams.keys():
device.applog.info(f'Setting up Tgen traffic for {s}')
out = await TrafficGen.set_traffic(
input_data=[{device.host_name: [{'name': s, 'pkt_data': streams[s]}]}]
)
device.applog.info(out)
assert out[0][device.host_name]['rc'] == 0, f'Setting tgen traffic failed.\n{out}'
device.applog.info(f'Saving Tgen config file {config_file_name}')
out = await TrafficGen.save_config(
input_data=[{device.host_name: [{'config_file_name': config_file_name}]}]
)
device.applog.info('Starting Protocols')
out = await TrafficGen.start_protocols(input_data=[{device.host_name: [{}]}])
device.applog.info(out)
assert out[0][device.host_name]['rc'] == 0, out[0][device.host_name]['result']
E AssertionError: Timeout - no response after 20s.
Metadata
Metadata
Assignees
Labels
regressionissue found in regressionissue found in regression