Add an IPv4 loopback address of 127.0.0.1/8 to the lo0 interface by default when creating VNETSs using pytest.
Details
Details
PROPOSAL
Pytest jails are VNET jails, and are created with a loopback interface already "UP", but ifconfig lo0 up only adds the ::1/128 IPv6 loopback address.
Some tests asume that lo0 already has 127.0.0.1/8, especially if not using jails. If the tests are using VNET jails, then jexec <jail> ifconfig lo0 127.0.0.1/8 up must be invoked.
Why not add it by default to the pytest VNET template?
If not, what could be the best way to create it? subprocess.run("ifconfig lo0 inet 127.0.0.1".split())?
Other suggestions welcomed!
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable