Skip to content

Commit b7742b5

Browse files
stmcginnisDean Troyer
authored andcommitted
Remove deprecated compute commands
The following were deprecated over two years ago and can now be removed: * ``ip fixed add|remove`` in favor of ``server add|remove fixed ip`` * ``ip floating add|remove`` in favor of ``server add|remove floating ip`` These are backwards incompatible changes and will require a major version bump after they are merged. Change-Id: I10c4d32a3c0b55ad41a02afd3b14249bafcb55a9 Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com> Signed-off-by: Dean Troyer <dtroyer@gmail.com>
1 parent 91bc0f3 commit b7742b5

9 files changed

Lines changed: 27 additions & 261 deletions

File tree

doc/source/cli/backwards-incompatible.rst

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,20 @@ from this backwards incompatible change handling.
1616
Backwards Incompatible Changes
1717
==============================
1818

19-
.. Carry this section as comments until 4.0 release
20-
.. Release 4.0
21-
.. -----------
19+
Release 4.0
20+
-----------
21+
22+
1. Remove ``ip fixed add|remove`` commands.
23+
Use ``server add|remove fixed ip`` commands instead.
24+
25+
* Removed in: 4.0
26+
* Commit: https://review.opendev.org/612781
27+
28+
2. Remove ``ip floating add|remove`` commands.
29+
Use ``server add|remove floating ip`` commands instead.
30+
31+
* Removed in: 4.0
32+
* Commit: https://review.opendev.org/612781
2233

2334
.. 1. Change ``volume transfer request accept`` to use new option ``--auth-key``
2435
.. rather than a second positional argument.

doc/source/cli/command-objects/floating-ip-pool.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
floating ip pool
33
================
44

5-
Compute v2, Network v2
5+
Network v2
66

77
floating ip pool list
88
---------------------

doc/source/cli/command-objects/floating-ip.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
floating ip
33
===========
44

5-
Compute v2, Network v2
5+
Network v2
66

77
floating ip create
88
------------------

doc/source/cli/command-objects/ip-fixed.rst

Lines changed: 0 additions & 47 deletions
This file was deleted.

doc/source/cli/commands.rst

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ referring to both Compute and Volume quotas.
9595
* ``extension``: (**Compute**, **Identity**, **Network**, **Volume**) OpenStack server API extensions
9696
* ``federation protocol``: (**Identity**) the underlying protocol used while federating identities
9797
* ``flavor``: (**Compute**) predefined server configurations: ram, root disk and so on
98-
* ``fixed ip``: (**Compute**, **Network**) - an internal IP address assigned to a server
99-
* ``floating ip``: (**Compute**, **Network**) - a public IP address that can be mapped to a server
100-
* ``floating ip pool``: (**Compute**, **Network**) - a pool of public IP addresses
98+
* ``fixed ip``: (**Compute**) - an internal IP address assigned to a server
99+
* ``floating ip``: (**Network**) - a public IP address that can be mapped to a server
100+
* ``floating ip pool``: (**Network**) - a pool of public IP addresses
101101
* ``group``: (**Identity**) a grouping of users
102102
* ``host``: (**Compute**) - the physical computer running compute services
103103
* ``hypervisor``: (**Compute**) the virtual machine manager
@@ -106,9 +106,6 @@ referring to both Compute and Volume quotas.
106106
* ``image``: (**Image**) a disk image
107107
* ``image member``: (**Image**) a project that is a member of an Image
108108
* ``ip availability``: (**Network**) - details of IP usage of a network
109-
* ``ip fixed``: (**Compute**, **Network**) - an internal IP address assigned to a server
110-
* ``ip floating``: (**Compute**, **Network**) - a public IP address that can be mapped to a server
111-
* ``ip floating pool``: (**Compute**, **Network**) - a pool of public IP addresses
112109
* ``keypair``: (**Compute**) an SSH public key
113110
* ``limits``: (**Compute**, **Volume**) resource usage limits
114111
* ``mapping``: (**Identity**) a definition to translate identity provider attributes to Identity concepts

openstackclient/compute/v2/fixedip.py

Lines changed: 0 additions & 100 deletions
This file was deleted.

openstackclient/compute/v2/floatingip.py

Lines changed: 0 additions & 97 deletions
This file was deleted.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
upgrade:
3+
- |
4+
Remove deprecated ``ip fixed add|remove`` commands.
5+
Use ``server add|remove fixed ip`` commands instead.
6+
- |
7+
Remove deprecated ``ip floating add|remove`` commands.
8+
Use ``server add|remove floating ip`` commands instead.

setup.cfg

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,6 @@ openstack.compute.v2 =
9191

9292
hypervisor_stats_show = openstackclient.compute.v2.hypervisor_stats:ShowHypervisorStats
9393

94-
ip_fixed_add = openstackclient.compute.v2.fixedip:AddFixedIP
95-
ip_fixed_remove = openstackclient.compute.v2.fixedip:RemoveFixedIP
96-
97-
ip_floating_add = openstackclient.compute.v2.floatingip:AddFloatingIP
98-
ip_floating_remove = openstackclient.compute.v2.floatingip:RemoveFloatingIP
99-
10094
keypair_create = openstackclient.compute.v2.keypair:CreateKeypair
10195
keypair_delete = openstackclient.compute.v2.keypair:DeleteKeypair
10296
keypair_list = openstackclient.compute.v2.keypair:ListKeypair

0 commit comments

Comments
 (0)