Skip to content

Networking V2: Added support for ML2 extension port_trusted_vif#3608

Merged
kayrus merged 1 commit intogophercloud:mainfrom
dlaw4608:vif_extension
Jan 22, 2026
Merged

Networking V2: Added support for ML2 extension port_trusted_vif#3608
kayrus merged 1 commit intogophercloud:mainfrom
dlaw4608:vif_extension

Conversation

@dlaw4608
Copy link
Copy Markdown
Contributor

Fixes: #3597

Added Trusted VIF, The port-trusted-vif extension adds trusted attribute to the port resource.
Was implemented as an extension similar to how the port_security_enabled extension is currently implemented in gophercloud.

API Reference: here

Links to the line numbers/files in the OpenStack source code that support the
code in this PR:
https://opendev.org/openstack/neutron/src/commit/762694d1bd6092060ce08c29d12575e303ae2973/neutron/plugins/ml2/extensions/port_trusted.py

@github-actions github-actions bot added edit:networking This PR updates networking code semver:major Breaking change labels Jan 22, 2026
@coveralls
Copy link
Copy Markdown

coveralls commented Jan 22, 2026

Coverage Status

coverage: 63.782% (+0.01%) from 63.772%
when pulling 9753503 on dlaw4608:vif_extension
into 61ee52d on gophercloud:main.

@winiciusallan
Copy link
Copy Markdown
Contributor

winiciusallan commented Jan 22, 2026

Jobs are failing on master branch due to eventlet module removal from neutron. This is a known problem.

Here is the upstream patch to fix it https://review.opendev.org/c/openstack/neutron-dynamic-routing/+/956747

On dalmation and epoxy, I believe it is because the extension is not enabled, so you may need to change the CI file to include it.

@github-actions github-actions bot added edit:actions This PR updates GitHub Actions code edit:testinfra This PR updates testing infrastructure code labels Jan 22, 2026
Copy link
Copy Markdown
Contributor

@winiciusallan winiciusallan left a comment

Choose a reason for hiding this comment

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

LGTM 👌

            This allows users to create and update the 'trusted'
            status of a port via the ML2 extension.

            Includes:
            - Extension package definition
            - Request/Response structs (CreateOptsExt, UpdateOptsExt)
            - Unit tests and acceptance tests

Signed-off-by: Daniel Lawton <dlawton@redhat.com>
@github-actions github-actions bot added semver:minor Backwards-compatible change backport-v2 This PR will be backported to v2 and removed semver:major Breaking change labels Jan 22, 2026
Copy link
Copy Markdown
Contributor

@kayrus kayrus left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@kayrus kayrus added this pull request to the merge queue Jan 22, 2026
Merged via the queue into gophercloud:main with commit ab4c6e3 Jan 22, 2026
61 of 62 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-v2 This PR will be backported to v2 edit:actions This PR updates GitHub Actions code edit:networking This PR updates networking code edit:testinfra This PR updates testing infrastructure code semver:minor Backwards-compatible change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

networking.v2.extensions: Add support for trusted field

4 participants