pyroute2
pyroute2 copied to clipboard
devlink.DL.get_port_dump(), error printing assigned MAC
The devlink.DL class prints the VF port MAC incorrectly. For example in [1], the port "enp4s0f1np1_2", that is assigned to a virtual machine and has MAC address "fa:16:3e:5d:9b:a9". The output is (snippet):
('DEVLINK_ATTR_PORT_FUNCTION',
{
'attrs': [
('DEVLINK_ATTR_BUS_NAME',
b'\xfa\x16>]\x9b\xa9')
]
})
[1]https://paste.opendev.org/show/bQAsqsVEDRMOOZ0KcsyH/