Network card Infiniband not recognize like network card
Hello,
Mellanox Card (Infiniband Network) as recognize like a serial port
this a print of iface (inventory.py line 192)
{'name': 'ibp65s0', 'macaddress': '00:00:10:29:fe:80:00:00:00:00:00:00:50:6b:00:00:00:00:00:00', 'serial': '00:00:10:29:fe:80:00:00:00:00:00:00:50:6b:00:00:00:00:00:00', 'product': 'MT27800 Family [ConnectX-5]', 'vendor': 'Mellanox Technologies', 'description': 'interface'}
when it's recognize like a serial, the fields need to be reduce (more 50char), so this do an error.
Bab
(sorry for my english, try to be better every day)
Hello, no problem with your english !
Sadly Netbox itself does not support Infiniband GUID (which is what is displayed here instead of a MAC address). This has been discussed quite a few times over the last 6 years without much results.
I guess we could either
- strip the colons and use
00001029fe80000000000000506b000000000000(40 chars) instead (only works for inventory item serials) - only use the MAC part of the GUID ie
00:00:10:29:fe:80and use it for both serial and MAC
What do you think ?
I did the latter, just trip out the 'MAC' address and discard the rest of the GUID.
Well, those macs would be the same if you have several interfaces...
4: ibp5s0: <BROADCAST,MULTICAST> mtu 4092 qdisc noop state DOWN group default qlen 256
link/infiniband 00:00:11:17:fe:80:00:00:00:00:00:00:50:6b:4b:03:00:1b:7e:d4 brd 00:ff:ff:ff:ff:12:40:1b:ff:ff:00:00:00:00:00:00:ff:ff:ff:ff
5: ibp12s0: <BROADCAST,MULTICAST> mtu 4092 qdisc noop state DOWN group default qlen 256
link/infiniband 00:00:11:17:fe:80:00:00:00:00:00:00:50:6b:4b:03:00:28:d5:96 brd 00:ff:ff:ff:ff:12:40:1b:ff:ff:00:00:00:00:00:00:ff:ff:ff:ff
6: ibp132s0: <BROADCAST,MULTICAST> mtu 4092 qdisc noop state DOWN group default qlen 256
link/infiniband 00:00:11:17:fe:80:00:00:00:00:00:00:50:6b:4b:03:00:28:d6:3a brd 00:ff:ff:ff:ff:12:40:1b:ff:ff:00:00:00:00:00:00:ff:ff:ff:ff
7: ibp139s0: <BROADCAST,MULTICAST> mtu 4092 qdisc noop state DOWN group default qlen 256
link/infiniband 00:00:11:17:fe:80:00:00:00:00:00:00:50:6b:4b:03:00:1b:80:84 brd 00:ff:ff:ff:ff:12:40:1b:ff:ff:00:00:00:00:00:00:ff:ff:ff:ff
I see unique MAC addresses?
4: ibp5s0: <BROADCAST,MULTICAST> mtu 4092 qdisc noop state DOWN group default qlen 256 link/infiniband 00:00:11:17:fe:80:00:00:00:00:00:00:50:6b:4b:03:00:1b:7e:d4 brd 00:ff:ff:ff:ff:12:40:1b:ff:ff:00:00:00:00:00:00:ff:ff:ff:ff 5: ibp12s0: <BROADCAST,MULTICAST> mtu 4092 qdisc noop state DOWN group default qlen 256 link/infiniband 00:00:11:17:fe:80:00:00:00:00:00:00:50:6b:4b:03:00:28:d5:96 brd 00:ff:ff:ff:ff:12:40:1b:ff:ff:00:00:00:00:00:00:ff:ff:ff:ff 6: ibp132s0: <BROADCAST,MULTICAST> mtu 4092 qdisc noop state DOWN group default qlen 256 link/infiniband 00:00:11:17:fe:80:00:00:00:00:00:00:50:6b:4b:03:00:28:d6:3a brd 00:ff:ff:ff:ff:12:40:1b:ff:ff:00:00:00:00:00:00:ff:ff:ff:ff 7: ibp139s0: <BROADCAST,MULTICAST> mtu 4092 qdisc noop state DOWN group default qlen 256 link/infiniband 00:00:11:17:fe:80:00:00:00:00:00:00:50:6b:4b:03:00:1b:80:84 brd 00
It's taking the first half of the MAC, which is the same for all