Comment 10 for bug 1394466

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-web (stable/5.1)

Reviewed: https://review.openstack.org/136804
Committed: https://git.openstack.org/cgit/stackforge/fuel-web/commit/?id=24b956d739e8e9d8f728701522c6fa8364526c45
Submitter: Jenkins
Branch: stable/5.1

commit 24b956d739e8e9d8f728701522c6fa8364526c45
Author: Sebastian Kalinowski <email address hidden>
Date: Fri Nov 21 14:06:43 2014 +0100

    Always match lowercase MAC

    In some places we are making comparisons between MACs
    from different sources like:
    * from DB - those are lowercase strings
    * from other inputs - where we do not know if MAC will
      be lowercase, uppercase (or mixed) string
    We need to always lowercase string in DB queries.

    Also new utils function was created: is_same_mac to compare
    if MACs are equal. It uses netaddr.EUI internally.

    Change-Id: Idae5bc6009f857e72712afac04ffe174e73c7a87
    Closes-Bug: #1394466
    (cherry picked from commit dfe79d35a47a28873f271131cf2fdae7052e0713)