pyroute2 icon indicating copy to clipboard operation
pyroute2 copied to clipboard

devlink.DL.get_port_dump(), error printing assigned MAC

Open ralonsoh opened this issue 2 years ago • 0 comments

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/

ralonsoh avatar Dec 13 '22 11:12 ralonsoh