[baremetal] Add support for querying for shards

Required for nova support for shard querying.

Related-bug: 2035286
Change-Id: I3aabd411537dfbfa2be2c8a2ac2b3ff1bb0e3689
This commit is contained in:
Jay Faulkner 2023-09-13 08:54:45 -07:00
parent 0782176022
commit df46d13f3c
1 changed files with 3 additions and 2 deletions

View File

@ -91,13 +91,14 @@ class Node(_common.ListMixin, resource.Resource):
'fault',
'provision_state',
'resource_class',
'shard',
fields={'type': _common.fields_type},
instance_id='instance_uuid',
is_maintenance='maintenance',
)
# Ability to get node inventory, introduced in 1.81 (Antelope).
_max_microversion = '1.81'
# Ability to query nodes by shard, introduced in 1.82 (Antelope).
_max_microversion = '1.82'
# Properties
#: The UUID of the allocation associated with this node. Added in API