Skip to content

Conversation

@pawel-baldysiak-dell
Copy link

Currently "bfmac=" param expects MAC address to follow "aa-bb-cc-dd-ee-ff" format, however standard defines that it might also be "aa:bb:cc:dd:ee:ff".
Change the way how "bfmac=" param is parsed, so it accepts both formats.

Currently "bfmac=" param expects MAC address to follow
"aa-bb-cc-dd-ee-ff" format, however standard defines that
it might also be "aa:bb:cc:dd:ee:ff".
Change the way how "bfmac=" param is parsed, so it accepts
both formats.

Signed-off-by: Pawel Baldysiak <[email protected]>
Copy link
Collaborator

@mahantesh-nvidia mahantesh-nvidia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This implementation is backward compatible and also handles grub format. This is efficient because the mac is required to be in the same format as grub stores is it, for finding the matching interface name from /sys/class/net/*/address

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants