netbox-agent icon indicating copy to clipboard operation
netbox-agent copied to clipboard

Network card Infiniband not recognize like network card

Open jlebard opened this issue 9 months ago • 5 comments

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)

jlebard avatar Mar 18 '25 08:03 jlebard

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:80 and use it for both serial and MAC

What do you think ?

ribetm avatar Mar 24 '25 20:03 ribetm

I did the latter, just trip out the 'MAC' address and discard the rest of the GUID.

msteggink avatar May 29 '25 20:05 msteggink

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

dimm0 avatar Jun 25 '25 22:06 dimm0

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

msteggink avatar Aug 05 '25 22:08 msteggink

It's taking the first half of the MAC, which is the same for all

dimm0 avatar Aug 07 '25 05:08 dimm0