diff --git a/openstackclient/network/v2/port.py b/openstackclient/network/v2/port.py index 49118b1d94..0e5fe76052 100644 --- a/openstackclient/network/v2/port.py +++ b/openstackclient/network/v2/port.py @@ -205,6 +205,10 @@ def _get_attrs(client_manager, parsed_args): and parsed_args.numa_policy_preferred ): attrs['numa_affinity_policy'] = 'preferred' + elif ( + 'numa_policy_socket' in parsed_args and parsed_args.numa_policy_socket + ): + attrs['numa_affinity_policy'] = 'socket' elif ( 'numa_policy_legacy' in parsed_args and parsed_args.numa_policy_legacy ): @@ -354,6 +358,11 @@ def _add_updatable_args(parser): action='store_true', help=_("NUMA affinity policy preferred to schedule this port"), ) + numa_affinity_policy_group.add_argument( + '--numa-policy-socket', + action='store_true', + help=_("NUMA affinity policy socket to schedule this port"), + ) numa_affinity_policy_group.add_argument( '--numa-policy-legacy', action='store_true', diff --git a/releasenotes/notes/add-port-numa-affinity-policy-socket-5a986b14033e0f6e.yaml b/releasenotes/notes/add-port-numa-affinity-policy-socket-5a986b14033e0f6e.yaml new file mode 100644 index 0000000000..d464992eca --- /dev/null +++ b/releasenotes/notes/add-port-numa-affinity-policy-socket-5a986b14033e0f6e.yaml @@ -0,0 +1,5 @@ +--- +features: + - | + Add a new NUMA affinity policy option: "socket". That applies to any new + port (using ``port create``) or any existing port (using ``port set``).