overcloud delete - bm_deploy - delete ports

The `overcloud node unprovision` command will delete
ports by default. See: tripleoclient/v2/overcloud_node.py#L422

Let's do the same by default when using `overcloud delete` with
the `--baremtal-deployment` option.

Change-Id: I881fa2cbb6612e10dbe85a800f38c6922fc0a92b
This commit is contained in:
Harald Jensås 2022-05-23 22:25:35 +02:00
parent 843a9d5614
commit e689a4e3b8
1 changed files with 4 additions and 2 deletions

View File

@ -63,7 +63,9 @@ class DeleteOvercloud(command.Command):
'network deployment to enable '
'unprovisioning of networks.'))
parser.add_argument('--network-ports',
help=_('Enable unprovisioning of network ports'),
help=_('DEPRECATED! Network ports will always be '
'unprovisioned.\n'
'Enable unprovisioning of network ports'),
default=False,
action="store_true")
parser.add_argument(
@ -141,7 +143,7 @@ class DeleteOvercloud(command.Command):
"baremetal_deployment": roles,
"all": True,
"prompt": False,
"manage_network_ports": parsed_args.network_ports,
"manage_network_ports": True,
}
)