mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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 4856aeaaed)
This commit is contained in:
parent
da57cc1400
commit
7c8355d205
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue