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

Implement trunk extension #131

Merged
merged 2 commits into from
Dec 1, 2023
Merged

Implement trunk extension #131

merged 2 commits into from
Dec 1, 2023

Conversation

sebageek
Copy link
Collaborator

Implement the trunk service extension. A trunk can be created on any port that is a in a direct binding hostgroup. Only one trunk per hostgroup is possible. If the host is part of a metagroup, only VLANs not used by the metagroup VLAN pool can be used as target, to not interfere with VMs put on the host(s).

The trunk plugin modifies the subports by setting binding host, vnic type and binding profile. The binding profile contains details about the specific VLAN translation, but this is only informational, as the "real" info will be fetched from the respective trunk/subport tables in the DB.

@sebageek sebageek force-pushed the trunk-extension branch 2 times, most recently from 98a2152 to ddbabd5 Compare November 17, 2023 15:05
@sebageek sebageek marked this pull request as ready for review November 17, 2023 15:08
Implement the trunk service extension. A trunk can be created on any
port that is in a direct binding hostgroup. Only one trunk per hostgroup
is possible. If the host is part of a metagroup, only VLANs not used by
the metagroup VLAN pool can be used as target, to not interfere with VMs
put on the host(s).

The trunk plugin modifies the subports by setting binding host, vnic
type and binding profile. The binding profile contains details
about the specific VLAN translation, but this is only informational, as
the "real" info will be fetched from the respective trunk/subport tables
in the DB.
Our code configured VLANs inside the interface's switched-vlan config,
but it needs to be on the same level as the config, so we now move it to
the proper location. The code for getting the config from the device
looks fine though.
Copy link

@sven-rosenzweig sven-rosenzweig left a comment

Choose a reason for hiding this comment

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

Looks good to me. I like the test driven approach here.

@sebageek sebageek merged commit fa803e8 into stable/yoga-m3 Dec 1, 2023
3 checks passed
@sebageek sebageek deleted the trunk-extension branch December 1, 2023 11:17
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.

3 participants