make -C tools/testing/selftests TARGETS="net" TEST_PROGS=vrf_route_leakingg.sh TEST_GEN_PROGS="" run_tests make: Entering directory '/home/virtme/testing-1/tools/testing/selftests' make[1]: Entering directory '/home/virtme/testing-1/tools/testing/selftests/net' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/virtme/testing-1/tools/testing/selftests/net' make[1]: Entering directory '/home/virtme/testing-1/tools/testing/selftests/net' TAP version 13 1..1 # timeout set to 3600 # selftests: net: vrf_route_leaking.sh # # ########################################################################### # IPv4 (sym route): VRF ICMP ttl error route lookup ping # ########################################################################### # # sysctl: cannot stat /proc/sys/net/ipv6/conf/all/forwarding: No such file or directory # sysctl: cannot stat /proc/sys/net/ipv6/conf/all/keep_addr_on_down: No such file or directory # sysctl: cannot stat /proc/sys/net/ipv6/conf/all/forwarding: No such file or directory # sysctl: cannot stat /proc/sys/net/ipv6/conf/all/keep_addr_on_down: No such file or directory # sysctl: cannot stat /proc/sys/net/ipv6/conf/all/forwarding: No such file or directory # Error: Unknown device type. # Cannot find device "r1h1" # Error: Unknown device type. # Cannot find device "r1h2" # Cannot find device "eth0" # Cannot find device "eth0" # Cannot find device "eth0" # Cannot find device "eth0" # Cannot find device "eth0" # Cannot find device "eth0" # Cannot find device "eth0" # Cannot find device "eth0" # Cannot find device "eth0" # Cannot find device "eth0" # Error: Rule family not supported. # Error: Rule family not supported. # Error: Unknown device type. # Cannot find device "blue" # Error: argument "blue" is wrong: Invalid VRF # # Error: argument "blue" is wrong: Invalid VRF # # Cannot find device "blue" # Cannot find device "blue" # Error: Unknown device type. # Cannot find device "red" # Error: argument "red" is wrong: Invalid VRF # # Error: argument "red" is wrong: Invalid VRF # # Cannot find device "red" # Cannot find device "red" # Cannot find device "eth1" # Error: argument "blue" is wrong: Not a valid VRF name # # Error: argument "red" is wrong: Not a valid VRF name # # Cannot find device "eth0" # Cannot find device "eth0" # Cannot find device "eth1" # Cannot find device "eth1" # Error: argument "blue" is wrong: Invalid VRF # # Error: argument "blue" is wrong: Invalid VRF # # Error: argument "red" is wrong: Invalid VRF # # Error: argument "red" is wrong: Invalid VRF # # TEST: Basic IPv4 connectivity [FAIL] # TEST: Ping received ICMP ttl exceeded [FAIL] # # ########################################################################### # IPv4 (sym route): VRF ICMP error route lookup traceroute # ########################################################################### # # sysctl: cannot stat /proc/sys/net/ipv6/conf/all/forwarding: No such file or directory # sysctl: cannot stat /proc/sys/net/ipv6/conf/all/keep_addr_on_down: No such file or directory # sysctl: cannot stat /proc/sys/net/ipv6/conf/all/forwarding: No such file or directory # sysctl: cannot stat /proc/sys/net/ipv6/conf/all/keep_addr_on_down: No such file or directory # sysctl: cannot stat /proc/sys/net/ipv6/conf/all/forwarding: No such file or directory # Error: Unknown device type. # Cannot find device "r1h1" # Error: Unknown device type. # Cannot find device "r1h2" # Cannot find device "eth0" # Cannot find device "eth0" # Cannot find device "eth0" # Cannot find device "eth0" # Cannot find device "eth0" # Cannot find device "eth0" # Cannot find device "eth0" # Cannot find device "eth0" # Cannot find device "eth0" # Cannot find device "eth0" # Error: Rule family not supported. # Error: Rule family not supported. # Error: Unknown device type. # Cannot find device "blue" # Error: argument "blue" is wrong: Invalid VRF # # Error: argument "blue" is wrong: Invalid VRF # # Cannot find device "blue" # Cannot find device "blue" # Error: Unknown device type. # Cannot find device "red" # Error: argument "red" is wrong: Invalid VRF # # Error: argument "red" is wrong: Invalid VRF # # Cannot find device "red" # Cannot find device "red" # Cannot find device "eth1" # Error: argument "blue" is wrong: Not a valid VRF name # # Error: argument "red" is wrong: Not a valid VRF name # # Cannot find device "eth0" # Cannot find device "eth0" # Cannot find device "eth1" # Cannot find device "eth1" # Error: argument "blue" is wrong: Invalid VRF # # Error: argument "blue" is wrong: Invalid VRF # # Error: argument "red" is wrong: Invalid VRF # # Error: argument "red" is wrong: Invalid VRF # # TEST: Basic IPv4 connectivity [FAIL] # TEST: Traceroute reports a hop on r1 [FAIL] # # ########################################################################### # IPv4 (sym route): VRF ICMP fragmentation error route lookup ping # ########################################################################### # # sysctl: cannot stat /proc/sys/net/ipv6/conf/all/forwarding: No such file or directory # sysctl: cannot stat /proc/sys/net/ipv6/conf/all/keep_addr_on_down: No such file or directory # sysctl: cannot stat /proc/sys/net/ipv6/conf/all/forwarding: No such file or directory # sysctl: cannot stat /proc/sys/net/ipv6/conf/all/keep_addr_on_down: No such file or directory # sysctl: cannot stat /proc/sys/net/ipv6/conf/all/forwarding: No such file or directory # Error: Unknown device type. # Cannot find device "r1h1" # Error: Unknown device type. # Cannot find device "r1h2" # Cannot find device "eth0" # Cannot find device "eth0" # Cannot find device "eth0" # Cannot find device "eth0" # Cannot find device "eth0" # Cannot find device "eth0" # Cannot find device "eth0" # Cannot find device "eth0" # Cannot find device "eth0" # Cannot find device "eth0" # Error: Rule family not supported. # Error: Rule family not supported. # Error: Unknown device type. # Cannot find device "blue" # Error: argument "blue" is wrong: Invalid VRF # # Error: argument "blue" is wrong: Invalid VRF # # Cannot find device "blue" # Cannot find device "blue" # Error: Unknown device type. # Cannot find device "red" # Error: argument "red" is wrong: Invalid VRF # # Error: argument "red" is wrong: Invalid VRF # # Cannot find device "red" # Cannot find device "red" # Cannot find device "eth1" # Error: argument "blue" is wrong: Not a valid VRF name # # Error: argument "red" is wrong: Not a valid VRF name # # Cannot find device "eth0" # Cannot find device "eth0" # Cannot find device "eth1" # Cannot find device "eth1" # Error: argument "blue" is wrong: Invalid VRF # # Error: argument "blue" is wrong: Invalid VRF # # Error: argument "red" is wrong: Invalid VRF # # Error: argument "red" is wrong: Invalid VRF # # TEST: Basic IPv4 connectivity [FAIL] # TEST: Ping received ICMP Frag needed [FAIL] # # ########################################################################### # IPv4 (asym route): VRF ICMP ttl error route lookup ping # ########################################################################### # # sysctl: cannot stat /proc/sys/net/ipv6/conf/all/forwarding: No such file or directory # sysctl: cannot stat /proc/sys/net/ipv6/conf/all/keep_addr_on_down: No such file or directory # sysctl: cannot stat /proc/sys/net/ipv6/conf/all/forwarding: No such file or directory # sysctl: cannot stat /proc/sys/net/ipv6/conf/all/keep_addr_on_down: No such file or directory # sysctl: cannot stat /proc/sys/net/ipv6/conf/all/forwarding: No such file or directory # sysctl: cannot stat /proc/sys/net/ipv6/conf/all/forwarding: No such file or directory # Error: Unknown device type. # Cannot find device "r1h1" # Error: Unknown device type. # Cannot find device "r2h1" # Error: Unknown device type. # Cannot find device "r1h2" # Error: Unknown device type. # Cannot find device "r2h2" # Error: Unknown device type. # Cannot find device "br0" # Cannot find device "br0" # Cannot find device "br0" # Error: argument "br0" is wrong: Device does not exist # # Error: argument "br0" is wrong: Device does not exist # # Cannot find device "br0" # Cannot find device "br0" # Error: Unknown device type. # Cannot find device "br0" # Cannot find device "br0" # Cannot find device "br0" # Error: argument "br0" is wrong: Device does not exist # # Error: argument "br0" is wrong: Device does not exist # # Cannot find device "br0" # Cannot find device "br0" # Error: Rule family not supported. # Error: Rule family not supported. # Error: Unknown device type. # Cannot find device "blue" # Error: argument "blue" is wrong: Invalid VRF # # Error: argument "blue" is wrong: Invalid VRF # # Cannot find device "blue" # Cannot find device "blue" # Error: Unknown device type. # Cannot find device "red" # Error: argument "red" is wrong: Invalid VRF # # Error: argument "red" is wrong: Invalid VRF # # Cannot find device "red" # Cannot find device "red" # Cannot find device "eth1" # Error: argument "blue" is wrong: Not a valid VRF name # # Error: argument "red" is wrong: Not a valid VRF name # # Cannot find device "eth0" # Cannot find device "eth0" # Cannot find device "eth1" # Cannot find device "eth1" # Error: argument "blue" is wrong: Invalid VRF # # Error: argument "blue" is wrong: Invalid VRF # # Cannot find device "eth0" # Cannot find device "eth0" # Cannot find device "eth1" # Cannot find device "eth1" # TEST: Basic IPv4 connectivity [FAIL] # TEST: Ping received ICMP ttl exceeded [FAIL] # # ########################################################################### # IPv4 (asym route): VRF ICMP error route lookup traceroute # ########################################################################### # # sysctl: cannot stat /proc/sys/net/ipv6/conf/all/forwarding: No such file or directory # sysctl: cannot stat /proc/sys/net/ipv6/conf/all/keep_addr_on_down: No such file or directory # sysctl: cannot stat /proc/sys/net/ipv6/conf/all/forwarding: No such file or directory # sysctl: cannot stat /proc/sys/net/ipv6/conf/all/keep_addr_on_down: No such file or directory # sysctl: cannot stat /proc/sys/net/ipv6/conf/all/forwarding: No such file or directory # sysctl: cannot stat /proc/sys/net/ipv6/conf/all/forwarding: No such file or directory # Error: Unknown device type. # Cannot find device "r1h1" # Error: Unknown device type. # Cannot find device "r2h1" # Error: Unknown device type. # Cannot find device "r1h2" # Error: Unknown device type. # Cannot find device "r2h2" # Error: Unknown device type. # Cannot find device "br0" # Cannot find device "br0" # Cannot find device "br0" # Error: argument "br0" is wrong: Device does not exist # # Error: argument "br0" is wrong: Device does not exist # # Cannot find device "br0" # Cannot find device "br0" # Error: Unknown device type. # Cannot find device "br0" # Cannot find device "br0" # Cannot find device "br0" # Error: argument "br0" is wrong: Device does not exist # # Error: argument "br0" is wrong: Device does not exist # # Cannot find device "br0" # Cannot find device "br0" # Error: Rule family not supported. # Error: Rule family not supported. # Error: Unknown device type. # Cannot find device "blue" # Error: argument "blue" is wrong: Invalid VRF # # Error: argument "blue" is wrong: Invalid VRF # # Cannot find device "blue" # Cannot find device "blue" # Error: Unknown device type. # Cannot find device "red" # Error: argument "red" is wrong: Invalid VRF # # Error: argument "red" is wrong: Invalid VRF # # Cannot find device "red" # Cannot find device "red" # Cannot find device "eth1" # Error: argument "blue" is wrong: Not a valid VRF name # # Error: argument "red" is wrong: Not a valid VRF name # # Cannot find device "eth0" # Cannot find device "eth0" # Cannot find device "eth1" # Cannot find device "eth1" # Error: argument "blue" is wrong: Invalid VRF # # Error: argument "blue" is wrong: Invalid VRF # # Cannot find device "eth0" # Cannot find device "eth0" # Cannot find device "eth1" # Cannot find device "eth1" # TEST: Basic IPv4 connectivity [FAIL] # TEST: Traceroute reports a hop on r1 [FAIL] # # ########################################################################### # IPv6 (sym route): VRF ICMP ttl error route lookup ping # ########################################################################### # # sysctl: cannot stat /proc/sys/net/ipv6/conf/all/forwarding: No such file or directory # sysctl: cannot stat /proc/sys/net/ipv6/conf/all/keep_addr_on_down: No such file or directory # sysctl: cannot stat /proc/sys/net/ipv6/conf/all/forwarding: No such file or directory # sysctl: cannot stat /proc/sys/net/ipv6/conf/all/keep_addr_on_down: No such file or directory # sysctl: cannot stat /proc/sys/net/ipv6/conf/all/forwarding: No such file or directory # Error: Unknown device type. # Cannot find device "r1h1" # Error: Unknown device type. # Cannot find device "r1h2" # Cannot find device "eth0" # Cannot find device "eth0" # Cannot find device "eth0" # Cannot find device "eth0" # Cannot find device "eth0" # Cannot find device "eth0" # Cannot find device "eth0" # Cannot find device "eth0" # Cannot find device "eth0" # Cannot find device "eth0" # Error: Rule family not supported. # Error: Rule family not supported. # Error: Unknown device type. # Cannot find device "blue" # Error: argument "blue" is wrong: Invalid VRF # # Error: argument "blue" is wrong: Invalid VRF # # Cannot find device "blue" # Cannot find device "blue" # Error: Unknown device type. # Cannot find device "red" # Error: argument "red" is wrong: Invalid VRF # # Error: argument "red" is wrong: Invalid VRF # # Cannot find device "red" # Cannot find device "red" # Cannot find device "eth1" # Error: argument "blue" is wrong: Not a valid VRF name # # Error: argument "red" is wrong: Not a valid VRF name # # Cannot find device "eth0" # Cannot find device "eth0" # Cannot find device "eth1" # Cannot find device "eth1" # Error: argument "blue" is wrong: Invalid VRF # # Error: argument "blue" is wrong: Invalid VRF # # Error: argument "red" is wrong: Invalid VRF # # Error: argument "red" is wrong: Invalid VRF # # TEST: Basic IPv6 connectivity [FAIL] # TEST: Ping received ICMP Hop limit [FAIL] # # ########################################################################### # IPv6 (sym route): VRF ICMP error route lookup traceroute # ########################################################################### # # sysctl: cannot stat /proc/sys/net/ipv6/conf/all/forwarding: No such file or directory # sysctl: cannot stat /proc/sys/net/ipv6/conf/all/keep_addr_on_down: No such file or directory # sysctl: cannot stat /proc/sys/net/ipv6/conf/all/forwarding: No such file or directory # sysctl: cannot stat /proc/sys/net/ipv6/conf/all/keep_addr_on_down: No such file or directory # sysctl: cannot stat /proc/sys/net/ipv6/conf/all/forwarding: No such file or directory # Error: Unknown device type. # Cannot find device "r1h1" # Error: Unknown device type. # Cannot find device "r1h2" # Cannot find device "eth0" # Cannot find device "eth0" # Cannot find device "eth0" # Cannot find device "eth0" # Cannot find device "eth0" # Cannot find device "eth0" # Cannot find device "eth0" # Cannot find device "eth0" # Cannot find device "eth0" # Cannot find device "eth0" # Error: Rule family not supported. # Error: Rule family not supported. # Error: Unknown device type. # Cannot find device "blue" # Error: argument "blue" is wrong: Invalid VRF # # Error: argument "blue" is wrong: Invalid VRF # # Cannot find device "blue" # Cannot find device "blue" # Error: Unknown device type. # Cannot find device "red" # Error: argument "red" is wrong: Invalid VRF # # Error: argument "red" is wrong: Invalid VRF # # Cannot find device "red" # Cannot find device "red" # Cannot find device "eth1" # Error: argument "blue" is wrong: Not a valid VRF name # # Error: argument "red" is wrong: Not a valid VRF name # # Cannot find device "eth0" # Cannot find device "eth0" # Cannot find device "eth1" # Cannot find device "eth1" # Error: argument "blue" is wrong: Invalid VRF # # Error: argument "blue" is wrong: Invalid VRF # # Error: argument "red" is wrong: Invalid VRF # # Error: argument "red" is wrong: Invalid VRF # # TEST: Basic IPv6 connectivity [FAIL] # TEST: Traceroute6 reports a hop on r1 [FAIL] # # ########################################################################### # IPv6 (asym route): VRF ICMP ttl error route lookup ping # ########################################################################### # # sysctl: cannot stat /proc/sys/net/ipv6/conf/all/forwarding: No such file or directory # sysctl: cannot stat /proc/sys/net/ipv6/conf/all/keep_addr_on_down: No such file or directory # sysctl: cannot stat /proc/sys/net/ipv6/conf/all/forwarding: No such file or directory # sysctl: cannot stat /proc/sys/net/ipv6/conf/all/keep_addr_on_down: No such file or directory # sysctl: cannot stat /proc/sys/net/ipv6/conf/all/forwarding: No such file or directory # sysctl: cannot stat /proc/sys/net/ipv6/conf/all/forwarding: No such file or directory # Error: Unknown device type. # Cannot find device "r1h1" # Error: Unknown device type. # Cannot find device "r2h1" # Error: Unknown device type. # Cannot find device "r1h2" # Error: Unknown device type. # Cannot find device "r2h2" # Error: Unknown device type. # Cannot find device "br0" # Cannot find device "br0" # Cannot find device "br0" # Error: argument "br0" is wrong: Device does not exist # # Error: argument "br0" is wrong: Device does not exist # # Cannot find device "br0" # Cannot find device "br0" # Error: Unknown device type. # Cannot find device "br0" # Cannot find device "br0" # Cannot find device "br0" # Error: argument "br0" is wrong: Device does not exist # # Error: argument "br0" is wrong: Device does not exist # # Cannot find device "br0" # Cannot find device "br0" # Error: Rule family not supported. # Error: Rule family not supported. # Error: Unknown device type. # Cannot find device "blue" # Error: argument "blue" is wrong: Invalid VRF # # Error: argument "blue" is wrong: Invalid VRF # # Cannot find device "blue" # Cannot find device "blue" # Error: Unknown device type. # Cannot find device "red" # Error: argument "red" is wrong: Invalid VRF # # Error: argument "red" is wrong: Invalid VRF # # Cannot find device "red" # Cannot find device "red" # Cannot find device "eth1" # Error: argument "blue" is wrong: Not a valid VRF name # # Error: argument "red" is wrong: Not a valid VRF name # # Cannot find device "eth0" # Cannot find device "eth0" # Cannot find device "eth1" # Cannot find device "eth1" # Error: argument "blue" is wrong: Invalid VRF # # Error: argument "blue" is wrong: Invalid VRF # # Cannot find device "eth0" # Cannot find device "eth0" # Cannot find device "eth1" # Cannot find device "eth1" # TEST: Basic IPv6 connectivity [FAIL] # TEST: Ping received ICMP Hop limit [FAIL] # # ########################################################################### # IPv6 (asym route): VRF ICMP error route lookup traceroute # ########################################################################### # # sysctl: cannot stat /proc/sys/net/ipv6/conf/all/forwarding: No such file or directory # sysctl: cannot stat /proc/sys/net/ipv6/conf/all/keep_addr_on_down: No such file or directory # sysctl: cannot stat /proc/sys/net/ipv6/conf/all/forwarding: No such file or directory # sysctl: cannot stat /proc/sys/net/ipv6/conf/all/keep_addr_on_down: No such file or directory # sysctl: cannot stat /proc/sys/net/ipv6/conf/all/forwarding: No such file or directory # sysctl: cannot stat /proc/sys/net/ipv6/conf/all/forwarding: No such file or directory # Error: Unknown device type. # Cannot find device "r1h1" # Error: Unknown device type. # Cannot find device "r2h1" # Error: Unknown device type. # Cannot find device "r1h2" # Error: Unknown device type. # Cannot find device "r2h2" # Error: Unknown device type. # Cannot find device "br0" # Cannot find device "br0" # Cannot find device "br0" # Error: argument "br0" is wrong: Device does not exist # # Error: argument "br0" is wrong: Device does not exist # # Cannot find device "br0" # Cannot find device "br0" # Error: Unknown device type. # Cannot find device "br0" # Cannot find device "br0" # Cannot find device "br0" # Error: argument "br0" is wrong: Device does not exist # # Error: argument "br0" is wrong: Device does not exist # # Cannot find device "br0" # Cannot find device "br0" # Error: Rule family not supported. # Error: Rule family not supported. # Error: Unknown device type. # Cannot find device "blue" # Error: argument "blue" is wrong: Invalid VRF # # Error: argument "blue" is wrong: Invalid VRF # # Cannot find device "blue" # Cannot find device "blue" # Error: Unknown device type. # Cannot find device "red" # Error: argument "red" is wrong: Invalid VRF # # Error: argument "red" is wrong: Invalid VRF # # Cannot find device "red" # Cannot find device "red" # Cannot find device "eth1" # Error: argument "blue" is wrong: Not a valid VRF name # # Error: argument "red" is wrong: Not a valid VRF name # # Cannot find device "eth0" # Cannot find device "eth0" # Cannot find device "eth1" # Cannot find device "eth1" # Error: argument "blue" is wrong: Invalid VRF # # Error: argument "blue" is wrong: Invalid VRF # # Cannot find device "eth0" # Cannot find device "eth0" # Cannot find device "eth1" # Cannot find device "eth1" # TEST: Basic IPv6 connectivity [FAIL] # TEST: Traceroute6 reports a hop on r1 [FAIL] # # Tests passed: 0 # Tests failed: 18 not ok 1 selftests: net: vrf_route_leaking.sh # exit=1 make[1]: Leaving directory '/home/virtme/testing-1/tools/testing/selftests/net' make: Leaving directory '/home/virtme/testing-1/tools/testing/selftests' xx__-> echo $? 0 xx__->