Compare commits

...

7 Commits
2.2.0 ... 2.3.0

Author SHA1 Message Date
Zuul
a8f4bcbdf7 Merge "Improved display of vnfPkgId for v2 Tacker" 2024-12-17 00:52:35 +00:00
Zuul
4513d1d648 Merge "Update master for stable/2024.2" 2024-12-16 16:06:22 +00:00
Zuul
07f8206f88 Merge "reno: Update master for unmaintained/2023.1" 2024-12-16 07:43:21 +00:00
Ai Hamano
0a8dced06e Improved display of vnfPkgId for v2 Tacker
This patch fixes the output of v2 Tacker so that vnfPkgId of
VnfInstance that are only used in v1 Tacker are not displayed
as CLI output.
This is because it is confusing for v2 users that unused vnfPkgId
(VNF Package ID) is always displayed as empty.

The vnfPkgId (VNF Package ID) remain displayed in the v1 Tacker
CLI output.

Change-Id: I4adea34e9c2c7fc51e087d2a00f47db77d67fe4a
2024-12-09 14:02:02 +09:00
Ai Hamano
ea4eb40758 Bump the hacking version to 7.0.0
This patch bumps the hacking version to 7.0.0 and fix the pep8
error:
 - AttributeError: 'EntryPoints' object has no attribute 'get'

Closes-Bug: #2088356
Change-Id: Idb35decd157d19618b062d05951743083c04c32b
2024-12-05 13:32:00 +09:00
96d5c461fe reno: Update master for unmaintained/2023.1
Update the 2023.1 release notes configuration to build from
unmaintained/2023.1.

Change-Id: Iba77aafbd18647b5cadf64ad17e2e6495f6c7715
2024-11-14 10:17:50 +00:00
44d05f27d7 Update master for stable/2024.2
Add file to the reno documentation build to show release notes for
stable/2024.2.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/2024.2.

Sem-Ver: feature
Change-Id: If53512a04460f86cf8ac5e400306d227e4410d4e
2024-09-06 13:32:03 +00:00
7 changed files with 19 additions and 8 deletions

View File

@@ -3,4 +3,4 @@
===========================
.. release-notes::
:branch: stable/2023.1
:branch: unmaintained/2023.1

View File

@@ -0,0 +1,6 @@
===========================
2024.2 Series Release Notes
===========================
.. release-notes::
:branch: stable/2024.2

View File

@@ -7,6 +7,7 @@ Contents:
:maxdepth: 2
unreleased
2024.2
2024.1
2023.2
2023.1

View File

@@ -31,8 +31,7 @@ _attr_map = (
('vnfProvider', 'VNF Provider', tacker_osc_utils.LIST_BOTH),
('vnfSoftwareVersion', 'VNF Software Version', tacker_osc_utils.LIST_BOTH),
('vnfProductName', 'VNF Product Name', tacker_osc_utils.LIST_BOTH),
('vnfdId', 'VNFD ID', tacker_osc_utils.LIST_BOTH),
('vnfPkgId', 'VNF Package ID', tacker_osc_utils.LIST_BOTH)
('vnfdId', 'VNFD ID', tacker_osc_utils.LIST_BOTH)
)
LOG = logging.getLogger(__name__)
@@ -68,8 +67,7 @@ def _get_columns(vnflcm_obj, action="/?originalUrl=https%3A%2F%2Fgit.openstack.org%2FNone)%3A%253C%2Fcode">
'vnfdVersion': 'VNFD Version',
'instantiationState': 'Instantiation State',
'_links': 'Links',
'vnfConfigurableProperties': 'VNF Configurable Properties',
'vnfPkgId': 'VNF Package ID',
'vnfConfigurableProperties': 'VNF Configurable Properties'
}
if action == 'show':
if vnflcm_obj['instantiationState'] == 'INSTANTIATED':
@@ -80,6 +78,12 @@ def _get_columns(vnflcm_obj, action="/?originalUrl=https%3A%2F%2Fgit.openstack.org%2FNone)%3A%253C%2Fcode">
{'vimConnectionInfo': 'VIM Connection Info',
'_links': 'Links'}
)
# Note: To prevent it from appearing in the v2 API output,
# the 'VNF Package ID' will be output only if the vnfPkgId exists.
if 'vnfPkgId' in vnflcm_obj:
column_map.update(
{'vnfPkgId': 'VNF Package ID'}
)
return sdk_utils.get_osc_show_columns_for_sdk_resource(vnflcm_obj,
column_map)

View File

@@ -56,7 +56,7 @@ def _get_columns_vnflcm(action="/?originalUrl=https%3A%2F%2Fgit.openstack.org%2F%26%2339%3Bcreate%26%2339%3B)%3A%253C%2Fcode">
if action == 'list':
columns = [ele for ele in columns if ele not in
['VNFD Version', 'VNF Instance Description',
'VNF Configurable Properties']]
'VNF Configurable Properties', 'VNF Package ID']]
columns.remove('Links')
return columns

View File

@@ -815,7 +815,7 @@ class VnfPMClient(ClientBase):
class Client(object):
"""Unified interface to interact with multiple applications of tacker service.
"""Unified interface to interact with multiple apps of tacker service.
This class is a single entry point to interact with legacy tacker apis and
vnf packages apis.

View File

@@ -2,7 +2,7 @@
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.
hacking>=4.0.0,<4.1.0 # Apache-2.0
hacking>=7.0.0,<7.1.0 # Apache-2.0
coverage!=4.4,>=4.0 # Apache-2.0
ddt>=1.0.1 # MIT
fixtures>=3.0.0 # Apache-2.0/BSD