def fake_network_get_by_instance(context, instance_id):
    'Stubs out the db.network_get_by_instance method.'
    fields = {'bridge': 'vmnet0', 'netmask': '255.255.255.0', 'gateway': '10.10.10.1', 'broadcast': '10.10.10.255', 'dns1': 'fake', 'vlan': 100}
    return FakeModel(fields)
Stubs out the db.network_get_by_instance method.
def fake_network_get_by_instance(context, instance_id):
    
    fields = {'bridge': 'vmnet0', 'netmask': '255.255.255.0', 'gateway': '10.10.10.1', 'broadcast': '10.10.10.255', 'dns1': 'fake', 'vlan': 100}
    return FakeModel(fields)