Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use net0 vnic for maghemite #1342

Merged
merged 2 commits into from
Jul 1, 2022
Merged

Use net0 vnic for maghemite #1342

merged 2 commits into from
Jul 1, 2022

Conversation

jgallagher
Copy link
Contributor

Following @bnaecker's suggestion in #1212 (comment), this changes bootstrap-agent to pass net0/linklocal (i.e., one of the VNICs created by create_virtual_hardware.sh) to magehmite instead of creating a $PHYS/linklocal (e.g., igb0/linklocal).

This mostly involved extracting the bit of code from opte.rs that ensures net{0,1}/linklocal are set up to somewhere it could be used by both opte and bootstrap-agent. I am not wedded to its new location or names by any means; please don't hesitate to suggest a different place / function name for underlay::find_nics().

While I was here I tried to address the TODO comment about passing multiple interfaces to maghemite, but ran into some issues testing that on my VMs. I'm going to continue poking at that, but will put it in a followup PR once it's working.

@jgallagher jgallagher requested a review from bnaecker July 1, 2022 15:19
Copy link
Collaborator

@bnaecker bnaecker left a comment

Choose a reason for hiding this comment

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

Awesome, thanks!

@jgallagher jgallagher merged commit a399b09 into main Jul 1, 2022
@jgallagher jgallagher deleted the maghemite-use-vnics branch July 1, 2022 16:44
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