summaryrefslogtreecommitdiff
path: root/openstackclient/network
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2021-12-13 10:26:18 +0000
committerGerrit Code Review <review@openstack.org>2021-12-13 10:26:18 +0000
commitc10a4cd96682d291dce571222de4fe5128f1c584 (patch)
treed38ee59d4800419fa3f6a3035e4df13d859fc6c4 /openstackclient/network
parent4e9b9298429f5db505987853f98d2388b6745b13 (diff)
parentf4629331134c40599f9baf908a391460b74d2767 (diff)
downloadpython-openstackclient-c10a4cd96682d291dce571222de4fe5128f1c584.tar.gz
Merge "Allow unset port's host_id"
Diffstat (limited to 'openstackclient/network')
-rw-r--r--openstackclient/network/v2/port.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/openstackclient/network/v2/port.py b/openstackclient/network/v2/port.py
index 132c384a..8f79b80b 100644
--- a/openstackclient/network/v2/port.py
+++ b/openstackclient/network/v2/port.py
@@ -969,6 +969,12 @@ class UnsetPort(common.NeutronUnsetCommandWithExtraArgs):
action='store_true',
help=_("Clear existing NUMA affinity policy")
)
+ parser.add_argument(
+ '--host',
+ action='store_true',
+ default=False,
+ help=_("Clear host binding for the port.")
+ )
_tag.add_tag_option_to_parser_for_unset(parser, _('port'))
@@ -1026,6 +1032,8 @@ class UnsetPort(common.NeutronUnsetCommandWithExtraArgs):
attrs['data_plane_status'] = None
if parsed_args.numa_policy:
attrs['numa_affinity_policy'] = None
+ if parsed_args.host:
+ attrs['binding:host_id'] = None
attrs.update(
self._parse_extra_properties(parsed_args.extra_properties))