|
13 | 13 |
|
14 | 14 | """IP Floating action implementations""" |
15 | 15 |
|
16 | | -import logging |
17 | | - |
18 | 16 | from osc_lib.command import command |
19 | 17 | from osc_lib import utils |
20 | 18 |
|
@@ -155,30 +153,6 @@ def take_action_compute(self, client, parsed_args): |
155 | 153 | return (columns, data) |
156 | 154 |
|
157 | 155 |
|
158 | | -class CreateIPFloating(CreateFloatingIP): |
159 | | - _description = _("Create floating IP") |
160 | | - |
161 | | - # TODO(tangchen): Remove this class and ``ip floating create`` command |
162 | | - # two cycles after Mitaka. |
163 | | - |
164 | | - # This notifies cliff to not display the help for this command |
165 | | - deprecated = True |
166 | | - |
167 | | - log = logging.getLogger('deprecated') |
168 | | - |
169 | | - def take_action_network(self, client, parsed_args): |
170 | | - self.log.warning(_('This command has been deprecated. ' |
171 | | - 'Please use "floating ip create" instead.')) |
172 | | - return super(CreateIPFloating, self).take_action_network( |
173 | | - client, parsed_args) |
174 | | - |
175 | | - def take_action_compute(self, client, parsed_args): |
176 | | - self.log.warning(_('This command has been deprecated. ' |
177 | | - 'Please use "floating ip create" instead.')) |
178 | | - return super(CreateIPFloating, self).take_action_compute( |
179 | | - client, parsed_args) |
180 | | - |
181 | | - |
182 | 156 | class DeleteFloatingIP(common.NetworkAndComputeDelete): |
183 | 157 | _description = _("Delete floating IP(s)") |
184 | 158 |
|
@@ -206,30 +180,6 @@ def take_action_compute(self, client, parsed_args): |
206 | 180 | client.api.floating_ip_delete(self.r) |
207 | 181 |
|
208 | 182 |
|
209 | | -class DeleteIPFloating(DeleteFloatingIP): |
210 | | - _description = _("Delete floating IP(s)") |
211 | | - |
212 | | - # TODO(tangchen): Remove this class and ``ip floating delete`` command |
213 | | - # two cycles after Mitaka. |
214 | | - |
215 | | - # This notifies cliff to not display the help for this command |
216 | | - deprecated = True |
217 | | - |
218 | | - log = logging.getLogger('deprecated') |
219 | | - |
220 | | - def take_action_network(self, client, parsed_args): |
221 | | - self.log.warning(_('This command has been deprecated. ' |
222 | | - 'Please use "floating ip delete" instead.')) |
223 | | - return super(DeleteIPFloating, self).take_action_network( |
224 | | - client, parsed_args) |
225 | | - |
226 | | - def take_action_compute(self, client, parsed_args): |
227 | | - self.log.warning(_('This command has been deprecated. ' |
228 | | - 'Please use "floating ip delete" instead.')) |
229 | | - return super(DeleteIPFloating, self).take_action_compute( |
230 | | - client, parsed_args) |
231 | | - |
232 | | - |
233 | 183 | class ListFloatingIP(common.NetworkAndComputeLister): |
234 | 184 | # TODO(songminglong): Use SDK resource mapped attribute names once |
235 | 185 | # the OSC minimum requirements include SDK 1.0 |
@@ -375,30 +325,6 @@ def take_action_compute(self, client, parsed_args): |
375 | 325 | ) for s in data)) |
376 | 326 |
|
377 | 327 |
|
378 | | -class ListIPFloating(ListFloatingIP): |
379 | | - _description = _("List floating IP(s)") |
380 | | - |
381 | | - # TODO(tangchen): Remove this class and ``ip floating list`` command |
382 | | - # two cycles after Mitaka. |
383 | | - |
384 | | - # This notifies cliff to not display the help for this command |
385 | | - deprecated = True |
386 | | - |
387 | | - log = logging.getLogger('deprecated') |
388 | | - |
389 | | - def take_action_network(self, client, parsed_args): |
390 | | - self.log.warning(_('This command has been deprecated. ' |
391 | | - 'Please use "floating ip list" instead.')) |
392 | | - return super(ListIPFloating, self).take_action_network( |
393 | | - client, parsed_args) |
394 | | - |
395 | | - def take_action_compute(self, client, parsed_args): |
396 | | - self.log.warning(_('This command has been deprecated. ' |
397 | | - 'Please use "floating ip list" instead.')) |
398 | | - return super(ListIPFloating, self).take_action_compute( |
399 | | - client, parsed_args) |
400 | | - |
401 | | - |
402 | 328 | class SetFloatingIP(command.Command): |
403 | 329 | _description = _("Set floating IP Properties") |
404 | 330 |
|
@@ -483,30 +409,6 @@ def take_action_compute(self, client, parsed_args): |
483 | 409 | return (columns, data) |
484 | 410 |
|
485 | 411 |
|
486 | | -class ShowIPFloating(ShowFloatingIP): |
487 | | - _description = _("Display floating IP details") |
488 | | - |
489 | | - # TODO(tangchen): Remove this class and ``ip floating show`` command |
490 | | - # two cycles after Mitaka. |
491 | | - |
492 | | - # This notifies cliff to not display the help for this command |
493 | | - deprecated = True |
494 | | - |
495 | | - log = logging.getLogger('deprecated') |
496 | | - |
497 | | - def take_action_network(self, client, parsed_args): |
498 | | - self.log.warning(_('This command has been deprecated. ' |
499 | | - 'Please use "floating ip show" instead.')) |
500 | | - return super(ShowIPFloating, self).take_action_network( |
501 | | - client, parsed_args) |
502 | | - |
503 | | - def take_action_compute(self, client, parsed_args): |
504 | | - self.log.warning(_('This command has been deprecated. ' |
505 | | - 'Please use "floating ip show" instead.')) |
506 | | - return super(ShowIPFloating, self).take_action_compute( |
507 | | - client, parsed_args) |
508 | | - |
509 | | - |
510 | 412 | class UnsetFloatingIP(command.Command): |
511 | 413 | _description = _("Unset floating IP Properties") |
512 | 414 |
|
|
0 commit comments