diff options
author | Ruby Loo <ruby.loo@intel.com> | 2017-10-12 18:30:52 -0400 |
---|---|---|
committer | Ruby Loo <opensrloo@gmail.com> | 2018-04-02 17:56:47 +0000 |
commit | 37b85b6a399dba120de49d9056529852b2284793 (patch) | |
tree | 15729826ce2f7701e14c3b3b3f98d89a0c347cf1 /ironic/common/release_mappings.py | |
parent | 5816e50766e3ed9e08ff7fd7176a85b2ab835659 (diff) | |
download | ironic-37b85b6a399dba120de49d9056529852b2284793.tar.gz |
Copy port[group] VIF info from extra to internal_info
For API versions >= 1.28, Port & portgroup's .extra['vif_port_id'] was
deprecated in Ocata. Before we can remove support for this, we need to
copy that information to the object's internal_info['tenant_vif_port_id'].
This copy/migration is done at the API layer when the user specifies the
.extra[] value, as well as when the 'ironic db-sync online_data-migrations'
is run.
In order to know whether the ports and port groups have been migrated,
their IronicObject versions are incremented.
This also fixes it so that for API versions < 1.28, the deprecation
warning is not shown, since we still need to support extra['vif_port_id']
in this case.
When a port or portgroup's .extra['vif_port_id'] is removed via a
PATCH API request, that VIF is removed from that object's internal_info.
Change-Id: I69468c935e68dd9d37a474c318c3ceb9cdfc5868
Partial-Bug: 1722850
Diffstat (limited to 'ironic/common/release_mappings.py')
-rw-r--r-- | ironic/common/release_mappings.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ironic/common/release_mappings.py b/ironic/common/release_mappings.py index 503a3b3d4..3079b827b 100644 --- a/ironic/common/release_mappings.py +++ b/ironic/common/release_mappings.py @@ -106,8 +106,8 @@ RELEASE_MAPPING = { 'Node': ['1.23'], 'Conductor': ['1.2'], 'Chassis': ['1.3'], - 'Port': ['1.7'], - 'Portgroup': ['1.3'], + 'Port': ['1.8'], + 'Portgroup': ['1.4'], 'Trait': ['1.0'], 'TraitList': ['1.0'], 'VolumeConnector': ['1.0'], |