network id is uuid instead of id

network id is uuid, so it will makes uuid test with warning
this patch changes the field to uuid instead of int

Change-Id: I02ec985c16d195813bfe3a2d5212794953bcd155
This commit is contained in:
jichenjc 2016-12-09 16:48:55 +08:00
parent 722c543e9e
commit c2625849d0

View File

@ -33,6 +33,7 @@ from nova.objects import virtual_interface as vif_obj
from nova.tests.unit.objects import test_fixed_ip from nova.tests.unit.objects import test_fixed_ip
from nova.tests.unit.objects import test_instance_info_cache from nova.tests.unit.objects import test_instance_info_cache
from nova.tests.unit.objects import test_pci_device from nova.tests.unit.objects import test_pci_device
from nova.tests.unit import utils
from nova.tests import uuidsentinel as uuids from nova.tests import uuidsentinel as uuids
@ -418,7 +419,7 @@ def _get_fake_cache():
return ip_dict return ip_dict
info = [{'address': 'aa:bb:cc:dd:ee:ff', info = [{'address': 'aa:bb:cc:dd:ee:ff',
'id': 1, 'id': utils.FAKE_NETWORK_UUID,
'network': {'bridge': 'br0', 'network': {'bridge': 'br0',
'id': 1, 'id': 1,
'label': 'private', 'label': 'private',