|
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 |
|
@@ -159,30 +157,6 @@ def take_action_compute(self, client, parsed_args): |
159 | 157 | return (columns, data) |
160 | 158 |
|
161 | 159 |
|
162 | | -class CreateIPFloating(CreateFloatingIP): |
163 | | - _description = _("Create floating IP") |
164 | | - |
165 | | - # TODO(tangchen): Remove this class and ``ip floating create`` command |
166 | | - # two cycles after Mitaka. |
167 | | - |
168 | | - # This notifies cliff to not display the help for this command |
169 | | - deprecated = True |
170 | | - |
171 | | - log = logging.getLogger('deprecated') |
172 | | - |
173 | | - def take_action_network(self, client, parsed_args): |
174 | | - self.log.warning(_('This command has been deprecated. ' |
175 | | - 'Please use "floating ip create" instead.')) |
176 | | - return super(CreateIPFloating, self).take_action_network( |
177 | | - client, parsed_args) |
178 | | - |
179 | | - def take_action_compute(self, client, parsed_args): |
180 | | - self.log.warning(_('This command has been deprecated. ' |
181 | | - 'Please use "floating ip create" instead.')) |
182 | | - return super(CreateIPFloating, self).take_action_compute( |
183 | | - client, parsed_args) |
184 | | - |
185 | | - |
186 | 160 | class DeleteFloatingIP(common.NetworkAndComputeDelete): |
187 | 161 | _description = _("Delete floating IP(s)") |
188 | 162 |
|
@@ -210,30 +184,6 @@ def take_action_compute(self, client, parsed_args): |
210 | 184 | client.api.floating_ip_delete(self.r) |
211 | 185 |
|
212 | 186 |
|
213 | | -class DeleteIPFloating(DeleteFloatingIP): |
214 | | - _description = _("Delete floating IP(s)") |
215 | | - |
216 | | - # TODO(tangchen): Remove this class and ``ip floating delete`` command |
217 | | - # two cycles after Mitaka. |
218 | | - |
219 | | - # This notifies cliff to not display the help for this command |
220 | | - deprecated = True |
221 | | - |
222 | | - log = logging.getLogger('deprecated') |
223 | | - |
224 | | - def take_action_network(self, client, parsed_args): |
225 | | - self.log.warning(_('This command has been deprecated. ' |
226 | | - 'Please use "floating ip delete" instead.')) |
227 | | - return super(DeleteIPFloating, self).take_action_network( |
228 | | - client, parsed_args) |
229 | | - |
230 | | - def take_action_compute(self, client, parsed_args): |
231 | | - self.log.warning(_('This command has been deprecated. ' |
232 | | - 'Please use "floating ip delete" instead.')) |
233 | | - return super(DeleteIPFloating, self).take_action_compute( |
234 | | - client, parsed_args) |
235 | | - |
236 | | - |
237 | 187 | class ListFloatingIP(common.NetworkAndComputeLister): |
238 | 188 | # TODO(songminglong): Use SDK resource mapped attribute names once |
239 | 189 | # the OSC minimum requirements include SDK 1.0 |
@@ -384,30 +334,6 @@ def take_action_compute(self, client, parsed_args): |
384 | 334 | ) for s in data)) |
385 | 335 |
|
386 | 336 |
|
387 | | -class ListIPFloating(ListFloatingIP): |
388 | | - _description = _("List floating IP(s)") |
389 | | - |
390 | | - # TODO(tangchen): Remove this class and ``ip floating list`` command |
391 | | - # two cycles after Mitaka. |
392 | | - |
393 | | - # This notifies cliff to not display the help for this command |
394 | | - deprecated = True |
395 | | - |
396 | | - log = logging.getLogger('deprecated') |
397 | | - |
398 | | - def take_action_network(self, client, parsed_args): |
399 | | - self.log.warning(_('This command has been deprecated. ' |
400 | | - 'Please use "floating ip list" instead.')) |
401 | | - return super(ListIPFloating, self).take_action_network( |
402 | | - client, parsed_args) |
403 | | - |
404 | | - def take_action_compute(self, client, parsed_args): |
405 | | - self.log.warning(_('This command has been deprecated. ' |
406 | | - 'Please use "floating ip list" instead.')) |
407 | | - return super(ListIPFloating, self).take_action_compute( |
408 | | - client, parsed_args) |
409 | | - |
410 | | - |
411 | 337 | class SetFloatingIP(command.Command): |
412 | 338 | _description = _("Set floating IP Properties") |
413 | 339 |
|
@@ -499,30 +425,6 @@ def take_action_compute(self, client, parsed_args): |
499 | 425 | return (columns, data) |
500 | 426 |
|
501 | 427 |
|
502 | | -class ShowIPFloating(ShowFloatingIP): |
503 | | - _description = _("Display floating IP details") |
504 | | - |
505 | | - # TODO(tangchen): Remove this class and ``ip floating show`` command |
506 | | - # two cycles after Mitaka. |
507 | | - |
508 | | - # This notifies cliff to not display the help for this command |
509 | | - deprecated = True |
510 | | - |
511 | | - log = logging.getLogger('deprecated') |
512 | | - |
513 | | - def take_action_network(self, client, parsed_args): |
514 | | - self.log.warning(_('This command has been deprecated. ' |
515 | | - 'Please use "floating ip show" instead.')) |
516 | | - return super(ShowIPFloating, self).take_action_network( |
517 | | - client, parsed_args) |
518 | | - |
519 | | - def take_action_compute(self, client, parsed_args): |
520 | | - self.log.warning(_('This command has been deprecated. ' |
521 | | - 'Please use "floating ip show" instead.')) |
522 | | - return super(ShowIPFloating, self).take_action_compute( |
523 | | - client, parsed_args) |
524 | | - |
525 | | - |
526 | 428 | class UnsetFloatingIP(command.Command): |
527 | 429 | _description = _("Unset floating IP Properties") |
528 | 430 |
|
|
0 commit comments