1 #!/bin/bash 2 # SPDX-License-Identifier: GPL-2.0 3 4 ############################################################################## 5 # Topology description. p1 looped back to p2, p3 to p4 and so on. 6 declare -A NETIFS 7 8 NETIFS[p1]=veth0 9 NETIFS[p2]=veth1 10 NETIFS[p3]=veth2 11 NETIFS[p4]=veth3 12 NETIFS[p5]=veth4 13 NETIFS[p6]=veth5 14 NETIFS[p7]=veth6 15 NETIFS[p8]=veth7 16 17 ############################################################################## 18 # Defines 19 20 # IPv4 ping utility name 21 PING=ping 22 # IPv6 ping utility name. Some distributions use 'ping' for IPv6. 23 PING6=ping6 24 # Packet generator. Some distributions use 'mz'. 25 MZ=mausezahn 26 # Time to wait after interfaces participating in the test are all UP 27 WAIT_TIME=5 28 # Whether to pause on failure or not. 29 PAUSE_ON_FAIL=no 30 # Whether to pause on cleanup or not. 31 PAUSE_ON_CLEANUP=no 32 # Type of network interface to create 33 NETIF_TYPE=veth 34 # Whether to create virtual interfaces (veth) or not 35 NETIF_CREATE=yes 36