summaryrefslogtreecommitdiff
path: root/nova/block_device.py
diff options
context:
space:
mode:
authorArtom Lifshitz <alifshit@redhat.com>2016-01-05 22:57:53 +0000
committerDan Smith <dansmith@redhat.com>2016-04-01 08:46:54 -0700
commit9ba07fdf9feb5881a4b050f23066573f5d8753c8 (patch)
treea6cc5a0025804d152d09ae41c041fba390f703fa /nova/block_device.py
parentc368a3e802a9b9f2ddabcc2660fecf3615d9920c (diff)
downloadnova-9ba07fdf9feb5881a4b050f23066573f5d8753c8.tar.gz
Add tag column to vifs and bdm
This patch series adds the ability for a user to specify a tag to be applied to a network interface or a disk when booting an instance. This tag is then exposed through the metadata API. For example, a user boots a VM with two network interfaces. One is connected to a private network, the other to the public Internet. There is currently no direct way to tell which interface is which. Specifying tags allows the user to distinguish between the two interfaces. This patch contains the database migration to add a 'tag' column to the virtual_interfaces and block_device_mapping tables as well as the corresponding change to the VirtualInterface and BlockDeviceMapping objects. Implements: blueprint virt-device-role-tagging Co-authored-by: Vladik Romanovsky <vromanso@redhat.com> Change-Id: Ic8be3de4e970116772f9b6ce01c55e26b829e6cb
Diffstat (limited to 'nova/block_device.py')
-rw-r--r--nova/block_device.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/block_device.py b/nova/block_device.py
index b40aa5c7a0..ecb78efb6a 100644
--- a/nova/block_device.py
+++ b/nova/block_device.py
@@ -45,7 +45,7 @@ bdm_new_fields = set(['source_type', 'destination_type',
'guest_format', 'device_type', 'disk_bus', 'boot_index',
'device_name', 'delete_on_termination', 'snapshot_id',
'volume_id', 'volume_size', 'image_id', 'no_device',
- 'connection_info'])
+ 'connection_info', 'tag'])
bdm_db_only_fields = set(['id', 'instance_uuid'])