Merge "Adds support for the 'description' field in ports"

This commit is contained in:
Zuul
2025-05-29 21:43:39 +00:00
committed by Gerrit Code Review
2 changed files with 5 additions and 1 deletions

View File

@@ -41,13 +41,16 @@ class Port(_common.Resource):
# The is_smartnic field added in 1.53
# Query filter by shard added in 1.82
# The name field added in 1.88
_max_microversion = '1.88'
# The description field added in 1.97
_max_microversion = '1.97'
#: The physical hardware address of the network port, typically the
#: hardware MAC address.
address = resource.Body('address')
#: Timestamp at which the port was created.
created_at = resource.Body('created_at')
#: The description for the port
description = resource.Body('description')
#: A set of one or more arbitrary metadata key and value pairs.
extra = resource.Body('extra')
#: The UUID of the port

View File

@@ -17,6 +17,7 @@ from openstack.tests.unit import base
FAKE = {
"address": "11:11:11:11:11:11",
"created_at": "2016-08-18T22:28:49.946416+00:00",
"description": "Physical network",
"extra": {},
"internal_info": {},
"is_smartnic": True,