## -*- mode: python; coding: utf-8 -*-

## rrul46 test specification

IP_VERSION=6

include("rrul.conf")
DESCRIPTION="Realtime Response Under Load - Mixed IPv4/6"

# make some of the netperf use IPv4
DATA_SETS['TCP upload BE']['command'] = find_netperf("TCP_STREAM", LENGTH, HOST, marking="CS0,CS0", ip_version=4)
DATA_SETS['TCP upload BK']['command'] = find_netperf("TCP_STREAM", LENGTH, HOST, marking="CS1,CS1", ip_version=4)

DATA_SETS['TCP download BE']['command'] = find_netperf("TCP_STREAM", LENGTH, HOST, marking="CS0,CS0", ip_version=4)
DATA_SETS['TCP download BK']['command'] = find_netperf("TCP_STREAM", LENGTH, HOST, marking="CS1,CS1", ip_version=4)

DATA_SETS['Ping (ms) UDP BE']['command'] = find_netperf("UDP_RR", TOTAL_LENGTH, HOST, ip_version=4)
DATA_SETS['Ping (ms) UDP BK']['command'] = find_netperf("UDP_RR", TOTAL_LENGTH, HOST, marking="CS1,CS1", ip_version=4)
DATA_SETS['Ping (ms) ICMP']['command'] = find_ping(6, STEP_SIZE, TOTAL_LENGTH, HOST)

# the 46 test uses different UDP pings, so remove some and add some in
del DATA_SETS['Ping (ms) UDP EF']

DATA_SETS['Ping (ms) UDP6 BE'] = {'command': find_netperf("UDP_RR", TOTAL_LENGTH, HOST),
                                  'data_transform': 'rr_to_ms',
                                  'units': 'ms',
                                  'runner': 'netperf_demo',}
DATA_SETS['Ping (ms) UDP6 BK'] = {'command': find_netperf("UDP_RR", TOTAL_LENGTH, HOST, marking="CS1,CS1"),
                                  'data_transform': 'rr_to_ms',
                                  'units': 'ms',
                                  'runner': 'netperf_demo',}

# the ping plot should use the new data set names
PLOTS['ping']['series'] = [
    {'data': 'Ping (ms) UDP BK',
     'label': 'UDP BK'},
    {'data': 'Ping (ms) UDP BE',
     'label': 'UDP BE'},
    {'data': 'Ping (ms) UDP6 BK',
     'label': 'UDP6 BK'},
    {'data': 'Ping (ms) UDP6 BE',
     'label': 'UDP6 BE'},
    {'data': 'Ping (ms) ICMP',
     'label': 'ICMP'},
    {'data': 'Ping (ms) avg',
     'label': 'Avg',
     'smoothing': 10,
     'color': 'black',
     'linewidth': 2}]
