-
Notifications
You must be signed in to change notification settings - Fork 19
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
LACP support #37
Open
ydirson
wants to merge
23
commits into
xenserver:master
Choose a base branch
from
xcp-ng:for-xs/lacp
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
LACP support #37
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This was referenced Jan 23, 2023
Signed-off-by: Yann Dirson <[email protected]>
This will allow for more concise logic. Signed-off-by: BenjiReis <[email protected]>
Always safer, and will facilitate further splitting Signed-off-by: Yann Dirson <[email protected]>
Signed-off-by: Yann Dirson <[email protected]>
This check was already not very useful, as if an eth device is not in getNetifList(), the ifup command will just fail properly. But in the case of a bond interface, the bond device will not even exist before running ifup. Signed-off-by: Yann Dirson <[email protected]>
This is a prerequisite to allowing more than just eth* Signed-off-by: Yann Dirson <[email protected]>
Less complexity for the nominal case, and makes it easier to add different non-nominal cases. Signed-off-by: Yann Dirson <[email protected]>
Signed-off-by: Yann Dirson <[email protected]>
Signed-off-by: Yann Dirson <[email protected]>
…rpart Don't repeat all parameters on the deprecated version, as we're going to add more options. Signed-off-by: Yann Dirson <[email protected]>
Using 1 name for 2 concepts is a bad idea, especially in a single function. Also nukes one line of dead code. Signed-off-by: Yann Dirson <[email protected]>
Signed-off-by: Yann Dirson <[email protected]> (cherry picked from commit 50ecc56)
Signed-off-by: Yann Dirson <[email protected]>
For bonding support we'll add more fields to NIC, that NetInterface needs to know about. Signed-off-by: Yann Dirson <[email protected]>
Note this does not thouch DebStyleInterface, which seems to be dead code we cannot test. Signed-off-by: Yann Dirson <[email protected]>
Signed-off-by: Yann Dirson <[email protected]>
Bonding configuration created from commandline cannot be properly passed to the UI, which needs it both for netinstall and host-management, so we have to re-discover the existing configuration to present it to the user. This includes identifying the configured bonding interface, and filtering out their member interfaces from available choices. This is not very satisfying, and we may want to improve the overall installer architecture to make this better in the future, but it would be way out of scope here. Signed-off-by: Yann Dirson <[email protected]>
Signed-off-by: BenjiReis <[email protected]>
We'll call them from upcoming lacp_bond_ui(). Signed-off-by: BenjiReis <[email protected]>
Making things visible is good (esp. here it allows to check interface details), especially once we add the ability to create a bond interface. Signed-off-by: Yann Dirson <[email protected]>
Works at selectNetif level, and as such applies both to installer and host-management networt configs. Signed-off-by: BenjiReis <[email protected]> Signed-off-by: Yann Dirson <[email protected]>
Signed-off-by: Yann Dirson <[email protected]>
Signed-off-by: Yann Dirson <[email protected]>
What's the context of the last force-push? |
A simple rebase on latest release |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This branch deals with the installer side of things, firstboot data needs to be handled in XAPI, for which we depend on xapi-project/xen-api#4333:
Known limitations we may want to address:
does not deal with DebStyleInterface, ie. does not support Debian-based installer; shouldn't that code be simply be nuked ?[nuked since]ifcfg-*
files without an IP config.eth*
has been madeThis PR explicitly does not deal with:
ExistingInstallation.readSettings()
), to whichnetwork_db
seems to be unable to report about bonding (but the impact seems to be limited to default values). The system's bonds are already preserved on upgrade, though.What the screens currently look like: