From 7c8355d205e7490c61af1b0d9e20addea10cb513 Mon Sep 17 00:00:00 2001 From: Jose Luis Duran Date: Wed, 11 Jan 2023 14:33:58 +0000 Subject: [PATCH] tests: Add an IPv4 loopback address of 127.0.0.1/8 to the lo0 interface by default when creating VNETSs using pytest. Reviewed By: asomers Differential Revision: https://reviews.freebsd.org/D38021 (cherry picked from commit 4856aeaaed17726a1dfa5dd6c736e5b0851255b6) --- tests/atf_python/sys/net/vnet.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/atf_python/sys/net/vnet.py b/tests/atf_python/sys/net/vnet.py index aca1b53d388..1a8efe0d9ed 100644 --- a/tests/atf_python/sys/net/vnet.py +++ b/tests/atf_python/sys/net/vnet.py @@ -92,6 +92,7 @@ class VnetInterface(object): def setup_loopback(cls, vnet_name: str): lo = VnetInterface("", "lo0") lo.set_vnet(vnet_name) + lo.setup_addr("127.0.0.1/8") lo.turn_up() @classmethod