Skip to content

[backport] VLAN filtering feature#7185

Open
semarie wants to merge 6 commits into
xapi-project:26.1-lcmfrom
xcp-ng:dev/srt/lcm/vlan-filtering
Open

[backport] VLAN filtering feature#7185
semarie wants to merge 6 commits into
xapi-project:26.1-lcmfrom
xcp-ng:dev/srt/lcm/vlan-filtering

Conversation

@semarie

@semarie semarie commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Backport of #7123

@last-genius last-genius left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please backport commits with git cherry-pick -x so that their original hash can be tracked

@semarie
semarie force-pushed the dev/srt/lcm/vlan-filtering branch from 461ed55 to a14bef0 Compare July 22, 2026 11:12
@semarie

semarie commented Jul 22, 2026

Copy link
Copy Markdown
Contributor Author

Last push:

  • rebased on latest 26.1-lcm
  • adding cherry picked reference

@semarie
semarie requested a review from last-genius July 22, 2026 11:13
Comment thread ocaml/idl/datamodel_lifecycle.ml Outdated
semarie added 6 commits July 22, 2026 14:45
Signed-off-by: Sebastien Rodot <sebastien.rodot@vates.tech>
Use a more generic message to permit to use it in other context than VLAN creation.

Signed-off-by: Sebastien Rodot <sebastien.rodot@vates.tech>
(cherry picked from commit 48db100)
- update idl/datamodel to add trunks property on VIF
- add validation constraints (trunks filtering on access port isn't valid)
- add support inside `vif-real` for initial configuration
- add support inside xenopsd for dynamic changes
- add test coverage to new attributes

References:

- Design document: https://github.com/xapi-project/xen-api/blob/788869e5a92e10332ba2428eb91e5a2caf4c7131/doc/content/design/vlan-filtering.md

Signed-off-by: Sebastien Rodot <sebastien.rodot@vates.tech>
(cherry picked from commit 68c50c3)
Signed-off-by: Sebastien Rodot <sebastien.rodot@vates.tech>
(cherry picked from commit d8fcd26)
Signed-off-by: Sebastien Rodot <sebastien.rodot@vates.tech>
(cherry picked from commit 887d6ac)
- test_trunks_coherence_vif_set: Xapi_vif.add_trunks and Xapi_vif.set_trunks
- test_trunks_coherence_pif_vlan: T.make_pif (Xapi_pif.pool_introduce) and Xapi_vlan.create_internal (WIP)

Signed-off-by: Sebastien Rodot <sebastien.rodot@vates.tech>
(cherry picked from commit 1f50380)
@semarie
semarie force-pushed the dev/srt/lcm/vlan-filtering branch from a14bef0 to 8bda12a Compare July 22, 2026 12:46
@semarie

semarie commented Jul 22, 2026

Copy link
Copy Markdown
Contributor Author

Last push:

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