git: 7c8355d205e7 - stable/13 - 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: Thu, 09 Feb 2023 16:11:20 UTC
The branch stable/13 has been updated by melifaro:
URL: https://cgit.FreeBSD.org/src/commit/?id=7c8355d205e7490c61af1b0d9e20addea10cb513
commit 7c8355d205e7490c61af1b0d9e20addea10cb513
Author: Jose Luis Duran <jlduran@gmail.com>
AuthorDate: 2023-01-11 14:33:58 +0000
Commit: Alexander V. Chernikov <melifaro@FreeBSD.org>
CommitDate: 2023-02-09 15:44:42 +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
(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 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