def METHOD_NAME(self, adapter, switch, nic0):
    NETCREATE = {
        NETWORK_NAME: {
            'bridged': True,
            'bonding': BOND_NAME,
            'switch': switch,
        }
    }
    BONDCREATE = {BOND_NAME: {'nics': [nic0], 'switch': switch}}
    with adapter.setupNetworks({}, BONDCREATE, NOCHK):
        with pytest.raises(SetupNetworksError) as e:
            adapter.setupNetworks(NETCREATE, {}, TIMEOUT_CHK)
        assert e.value.status == ne.ERR_LOST_CONNECTION
        adapter.assertNoNetwork(NETWORK_NAME)
        adapter.assertBond(BOND_NAME, BONDCREATE[BOND_NAME])