~markmc/nova/flat-dhcp-without-bridge-iface

« back to all changes in this revision

Viewing changes to nova/tests/test_network.py

  • Committer: Tarmac
  • Author(s): Ryu Ishimoto, Dan Wendlandt
  • Date: 2011-08-19 08:54:49 UTC
  • mfrom: (1360.7.18 nova-quantum-vifid)
  • Revision ID: tarmac-20110819085449-g5rs3tfsdhumopsr
Added uuid column in virtual_interfaces table, and an OpenStack extension API for virtual interfaces to expose these IDs.  Also set this UUID as one of the external IDs in the OVS vif driver.

Show diffs side-by-side

added added

removed removed

Lines of Context:
108
108
 
109
109
vifs = [{'id': 0,
110
110
         'address': 'DE:AD:BE:EF:00:00',
 
111
         'uuid': '00000000-0000-0000-0000-0000000000000000',
111
112
         'network_id': 0,
112
113
         'network': FakeModel(**networks[0]),
113
114
         'instance_id': 0},
114
115
        {'id': 1,
115
116
         'address': 'DE:AD:BE:EF:00:01',
 
117
         'uuid': '00000000-0000-0000-0000-0000000000000001',
 
118
         'network_id': 0,
116
119
         'network_id': 1,
117
120
         'network': FakeModel(**networks[1]),
118
121
         'instance_id': 0}]
163
166
                     'ips': 'DONTCARE',
164
167
                     'label': 'test%s' % i,
165
168
                     'mac': 'DE:AD:BE:EF:00:0%s' % i,
 
169
                     'vif_uuid': ('00000000-0000-0000-0000-000000000000000%s' %
 
170
                                  i),
166
171
                     'rxtx_cap': 'DONTCARE',
167
172
                     'should_create_vlan': False,
168
173
                     'should_create_bridge': False}