Skip to content

Conversation

haseebsyed12
Copy link

@haseebsyed12 haseebsyed12 commented Jun 19, 2025

To fix this limitation #16

@cardoe
Copy link
Contributor

cardoe commented Jun 20, 2025

Can you build an image with this rebased and test it?

Copy link
Collaborator

@skrobul skrobul left a comment

Choose a reason for hiding this comment

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

can we get unit tests for this?

Comment on lines 105 to 111
uplink_nics = []
for network in eligible_networks:
link = network.link
nic = self.nics.find_by_mac(link.ethernet_mac_address)
uplink_nics.append(nic)

return uplink_nics
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
uplink_nics = []
for network in eligible_networks:
link = network.link
nic = self.nics.find_by_mac(link.ethernet_mac_address)
uplink_nics.append(nic)
return uplink_nics
return [self.nics.find_by_mac(n.link.ethernet_mac_address) for n in eligible_networks ]

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.

4 participants