Some users want to be able to run the tests without a configuration file which is useful when one needs to test both virtual and physical interfaces on the same machine. Move the defines that set the type of interface to create and whether to create it away from the optional configuration file to the library like the rest of the defines. Signed-off-by: Ido Schimmel <idosch@mellanox.com> Reviewed-by: Jiri Pirko <jiri@mellanox.com> Reviewed-by: David Ahern <dsahern@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
36 lines
932 B
Bash
36 lines
932 B
Bash
#!/bin/bash
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
##############################################################################
|
|
# Topology description. p1 looped back to p2, p3 to p4 and so on.
|
|
declare -A NETIFS
|
|
|
|
NETIFS[p1]=veth0
|
|
NETIFS[p2]=veth1
|
|
NETIFS[p3]=veth2
|
|
NETIFS[p4]=veth3
|
|
NETIFS[p5]=veth4
|
|
NETIFS[p6]=veth5
|
|
NETIFS[p7]=veth6
|
|
NETIFS[p8]=veth7
|
|
|
|
##############################################################################
|
|
# Defines
|
|
|
|
# IPv4 ping utility name
|
|
PING=ping
|
|
# IPv6 ping utility name. Some distributions use 'ping' for IPv6.
|
|
PING6=ping6
|
|
# Packet generator. Some distributions use 'mz'.
|
|
MZ=mausezahn
|
|
# Time to wait after interfaces participating in the test are all UP
|
|
WAIT_TIME=5
|
|
# Whether to pause on failure or not.
|
|
PAUSE_ON_FAIL=no
|
|
# Whether to pause on cleanup or not.
|
|
PAUSE_ON_CLEANUP=no
|
|
# Type of network interface to create
|
|
NETIF_TYPE=veth
|
|
# Whether to create virtual interfaces (veth) or not
|
|
NETIF_CREATE=yes
|