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)
Reviewed: https:/ /review. openstack. org/136804 /git.openstack. org/cgit/ stackforge/ fuel-web/ commit/ ?id=24b956d739e 8e9d8f728701522 c6fa8364526c45
Committed: https:/
Submitter: Jenkins
Branch: stable/5.1
commit 24b956d739e8e9d 8f728701522c6fa 8364526c45
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: Idae5bc6009f857 e72712afac04ffe 174e73c7a87 73f271131cf2fda e7052e0713)
Closes-Bug: #1394466
(cherry picked from commit dfe79d35a47a288