[dts] [PATCH 6/6] framework:tester: adding ConnectX_3_Pro second port to the list of ports

Raslan Darawsheh rasland at mellanox.com
Tue Oct 27 07:07:55 CET 2015


From: Raslsn Darawsheh <rdarawsheh at asaltech.com>

Signed-off-by: Raslsn Darawsheh <rdarawsheh at asaltech.com>
---
 framework/tester.py | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/framework/tester.py b/framework/tester.py
index de0bc24..cfab247 100644
--- a/framework/tester.py
+++ b/framework/tester.py
@@ -211,6 +211,7 @@ class Tester(Crb):
         try:
             for (pci_bus, pci_id) in self.pci_devices_info:
                 addr_array = pci_bus.split(':')
+                self.check_Mellanox_pci(pci_bus,pci_id)
                 port = NetDevice(self, addr_array[0], addr_array[1])
                 itf = port.get_interface_name()
                 self.enable_ipv6(itf)
@@ -309,6 +310,17 @@ class Tester(Crb):
                                     'intf': intf,
                                     'mac': macaddr,
                                     'ipv6': ipv6})
+            self.check_Mellanox_pci(pci_bus,pci_id)
+            if self.isMellanox and self.mellanoxCardType == "cx3" :
+                intf1 = port.get_interface_name()
+                macaddr1 = port.get_mac_addr()
+                ipv6_port2 = port.get_ipv6_addr()
+                self.ports_info.append({'port': port,
+                                        'pci': pci_bus,
+                                        'type': pci_id,
+                                        'intf': intf1,
+                                        'mac': macaddr1,
+                                        'ipv6': ipv6_port2})
 
     def send_ping6(self, localPort, ipv6, mac):
         """
-- 
1.8.3.1



More information about the dts mailing list