[dts] [PATCH] framework/dut: Fix upper and lower for MAC address

Michael Qiu michael.qiu at intel.com
Tue Oct 13 08:20:54 CEST 2015


When MAC address are actually the same but different upper and lower,
it should be take as the same.

Signed-off-by: Michael Qiu <michael.qiu at intel.com>
---
 framework/dut.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/framework/dut.py b/framework/dut.py
index 1199fc6..70bd146 100644
--- a/framework/dut.py
+++ b/framework/dut.py
@@ -778,9 +778,9 @@ class Dut(Crb):
 
             for key in ['intf', 'mac', 'numa', 'peer', 'source']:
                 if key in port_cfg:
-                    if key in port and port_cfg[key] != port[key]:
+                    if key in port and port_cfg[key].lower() != port[key].lower():
                         self.logger.warning("CONFIGURED %s NOT SAME AS SCANNED!!!" % (key.upper()))
-                    port[key] = port_cfg[key]
+                    port[key] = port_cfg[key].lower()
 
     def map_available_ports(self):
         """
-- 
1.9.3



More information about the dts mailing list