Added a convertion method in the "port.mac_address" parameter. This
convertion will return a sanitized MAC address formatted as:
xx:xx:xx:xx:xx:xx
This patch is not creating a new extension (that should be the
regular process):
- To avoid the Neutron extension explosion.
- Because this method will not validate the MAC address but
sanitize it, if valid. Other services or projects will expect
a MAC address with the defined format.
- This sanitization won't change the MAC address value.
- This sanitization will be always enabled (no extension needed).
Reviewed: https:/ /review. opendev. org/c/openstack /neutron- lib/+/788300 /opendev. org/openstack/ neutron- lib/commit/ 9d3cac1d69a143c 0a44230144760dd 86c52d6ac7
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 9d3cac1d69a143c 0a44230144760dd 86c52d6ac7
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Tue Apr 27 13:43:31 2021 +0000
Modify "port.mac_address" API definition
Added a convertion method in the "port.mac_address" parameter. This xx:xx:xx: xx:xx
convertion will return a sanitized MAC address formatted as:
xx:
This patch is not creating a new extension (that should be the
regular process):
- To avoid the Neutron extension explosion.
- Because this method will not validate the MAC address but
sanitize it, if valid. Other services or projects will expect
a MAC address with the defined format.
- This sanitization won't change the MAC address value.
- This sanitization will be always enabled (no extension needed).
Closes-Bug: #1926273
Change-Id: I95d596c8471683 5076365981376fb 23166c6b23c