def update_port_address(self, port_id, address, token=None):
    "Update a port's mac address.\n\n        :param port_id: Neutron port id.\n        :param address: new MAC address.\n        :param token: optional auth token.\n        :raises: FailedToUpdateMacOnPort\n        "
    port_req_body = {'port': {'mac_address': address}}
    try:
        _build_client(token).update_port(port_id, port_req_body)
    except neutron_client_exc.NeutronClientException:
        LOG.exception(_LE('Failed to update MAC address on Neutron port %s.'), port_id)
        raise exception.FailedToUpdateMacOnPort(port_id=port_id)
Update a port's mac address.

:param port_id: Neutron port id.
:param address: new MAC address.
:param token: optional auth token.
:raises: FailedToUpdateMacOnPort
def update_port_address(self, port_id, address, token=None):
    "Update a port's mac address.\n\n        :param port_id: Neutron port id.\n        :param address: new MAC address.\n        :param token: optional auth token.\n        :raises: FailedToUpdateMacOnPort\n        "
    port_req_body = {'port': {'mac_address': address}}
    try:
        _build_client(token).update_port(port_id, port_req_body)
    except neutron_client_exc.NeutronClientException:
        LOG.exception(_LE('Failed to update MAC address on Neutron port %s.'), port_id)
        raise exception.FailedToUpdateMacOnPort(port_id=port_id)