git: 4856aeaaed17 - main - tests: Add an IPv4 loopback address of 127.0.0.1/8 to the lo0 interface by default when creating VNETSs using pytest.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 11 Jan 2023 14:58:09 UTC
The branch main has been updated by melifaro: URL: https://cgit.FreeBSD.org/src/commit/?id=4856aeaaed17726a1dfa5dd6c736e5b0851255b6 commit 4856aeaaed17726a1dfa5dd6c736e5b0851255b6 Author: Jose Luis Duran <jlduran@gmail.com> AuthorDate: 2023-01-11 14:33:58 +0000 Commit: Alexander V. Chernikov <melifaro@FreeBSD.org> CommitDate: 2023-01-11 14:34:41 +0000 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 --- 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 aca1b53d388c..1a8efe0d9edc 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