@pytest.fixture
def add_network(host):
    'Adds a network to the stacki db. For historical reasons the first test network this creates is pxe=False.'

    def _inner(name, address, pxe=False):
        result = host.run(f'stack add network {name} address={address} mask=255.255.255.0 pxe={pxe}')
        if (result.rc != 0):
            pytest.fail(f'unable to add dummy network "{name}"')
    _inner('test', '192.168.0.0')
    return _inner
Adds a network to the stacki db. For historical reasons the first test network this creates is pxe=False.
@pytest.fixture
def add_network(host):
    

    def _inner(name, address, pxe=False):
        result = host.run(f'stack add network {name} address={address} mask=255.255.255.0 pxe={pxe}')
        if (result.rc != 0):
            pytest.fail(f'unable to add dummy network "{name}"')
    _inner('test', '192.168.0.0')
    return _inner