This has been unused since I71b5ae8a4bbcb2fdebf894d8bd5cc8322c31bdb5.
Change-Id: Ic90e48868d3e4c79b262d0e127f1b38dc7d840dc
Signed-off-by: Stephen Finucane <[email protected]>
Add ``--availability-zone`` and ``--host`` options to the
``aggregate list`` command so the results can be narrowed without
post-processing the output.
The compute API does not support server-side filtering of aggregates,
so the filtering is performed client-side. When both options are
supplied they are combined with AND, returning only aggregates that
match every filter.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Change-Id: I9d802cab2bacd817f1a064374f6e118724000702
Signed-off-by: Shi Yan <[email protected]>
Change Ie57a5c17a6df5a333abd6b11e28b65833740e102 did this for the v2
API but missed v1. Correct this now.
Change-Id: I53c72cce4be38d7eb64345db29abf95d5d5ffeb7
Signed-off-by: Stephen Finucane <[email protected]>
The attribute has two modes:
- a specified number greater tha 0 sends evpn_vni: <int> to the server
- an "auto" which sends number 0 to the server, which results in the
VNI auto-allocation
The evpn-vni attribute on the Neutron server side is immutable
for now and we do not support updates.
Related-Bug: #2144617
Assisted-By: Claude Opus 4.6
Change-Id: I4b11947c3a7e25fec6b1bd55e5134bfd4ffc0bb1
Signed-off-by: Jakub Libosvar <[email protected]>
We need the glob to ensure subpackages are discovered.
Change-Id: I499d7cec2ba3e2d9b28d50a4eef2c65b43669427
Signed-off-by: Stephen Finucane <[email protected]>
These should have all been migrated when the commands were moved
from cinderclient to SDK.
Change-Id: I79730cd789d3adf78f4655d138c68cff1d046a5b
Signed-off-by: Stephen Finucane <[email protected]>
Add volume_backend.py for v3 API to support:
- volume backend pool list
- volume backend capability show
This mirrors the v2 implementation with version updated to '3'.
Includes unit tests for both commands.
This change is related to https://review.opendev.org/c/openstack/python-openstackclient/+/986510
which added ensure_service_version support for volume v3 API.
Closes-Bug: #2155843
Change-Id: I091980de597d89ea184856e1831a5119c6d7ac6a
Signed-off-by: hongp <[email protected]>
The Router object in the SDK defines the evpn_vni in the Depends-On
patch. The attribute is returned in the body only if the EVPN extension
is enabled in Neutron but the Router object in SDK attempts to show it
always.
This patch makes the column visible only if it's really present in
the API response.
Assisted-By: Claude Opus 4.6
Related-Bug: #2144617
Change-Id: I8747f3cb753a115e7955b0a0ea136431fdade0dd
Signed-off-by: Jakub Libosvar <[email protected]>
Before this change, the 'quota show' command displayed incorrect
keypair usage. While keypairs are listed under compute quotas, the
Nova compute API does not actually gather or track keypair usage data
on a per-project basis. As the result keypair usage output was always 0.
Resolve this by checking whether the current user matches the target
project scope. If the project IDs match, the code queries the compute
SDK directly to retrieve the active keypair count for that user.
Change-Id: I5592e1b797b4d18c6c2aae48580ff6f014ffd214
Signed-off-by: Alicja Filipek <[email protected]>
The parameter sets a boolean for the
"openstack router add subnet" command. If "--advertise-host" is passed
then the REST request contains "advertise_host": "true" in the body
according the spec [1].
There is a conditional handling of that parameter because of the
openstacksdk dependency. Once openstacksdk gets implemented the
parameter and is released, we should remove the condition and
pass the parameter directly to the add_interface_to_router method
Related-Bug: #2144617
Assisted-By: Claude Opus 4.6
[1] https://opendev.org/openstack/neutron-specs/src/branch/master/specs/2026.2/bgp_evpn_type_5_route_support.rst#changes-to-cli-and-rest-api
Change-Id: I7b760ad963901eb149e3149057aed17e654af0aa
Signed-off-by: Jakub Libosvar <[email protected]>
Avoid use of __version__ attributes which are deprecated for removal in
many places.
Change-Id: I5ee9b5306100404a8d40795ca9599c76dee35d6e
Signed-off-by: Stephen Finucane <[email protected]>
Closes-Bug: #2155226
The "firewall group create" and "firewall group rule create" commands
expected the resource name to be passed via the --name option, which
is inconsistent with "firewall group policy create" and most other
OSC commands where name is a positional argument.
This change adds name as an optional positional argument to both
create commands while keeping the --name option as a deprecated
alternative for backward compatibility. If a user passes --name,
a deprecation warning is logged. Passing both the positional name
and --name at the same time results in an error.
The --name option for the corresponding "set" commands is unaffected
since it is the correct interface for renaming an existing resource.
Assisted-by: Claude Opus 4.6 <[email protected]>
Closes-Bug: #2155144
Change-Id: Ie3beaf526858573872639aae5431d31fbf887cb6
Signed-off-by: Slawek Kaplonski <[email protected]>
Add the router-routes option to "quota set" and include
router_routes in "quota show" and "quota list --network" output.
This exposes the new Neutron router_route per-project quota that
replaces the old static max_routes config option.
Related-Bug: #2026489
Assisted-by: Claude Opus 4.6
Signed-off-by: Rodolfo Alonso Hernandez <[email protected]>
Change-Id: I1d7c4152c005c0aaa8e49b0b9e29c6d5a7e5bb64