Skip to content

[v2] Add networking taas tapmirror suite#3487

Merged
mandre merged 4 commits intov2from
bp-v2-38c1bca-bc9ccfa-2c6c60b
Aug 18, 2025
Merged

[v2] Add networking taas tapmirror suite#3487
mandre merged 4 commits intov2from
bp-v2-38c1bca-bc9ccfa-2c6c60b

Conversation

@gophercloud-backport-bot
Copy link
Copy Markdown

Backport: #3483

Closes #3482

Links to the line numbers/files in the OpenStack source code that support the
code in this PR:

https://github.com/openstack/tap-as-a-service/blob/7984544610ed949414967cfe950f18336fa21880/neutron_taas/db/tap_mirror_db.py#L82
https://github.com/openstack/tap-as-a-service/blob/7acc6654ecdffafb22e6ef9ad64606e0c902a722/neutron_taas/services/taas/drivers/linux/ovs_taas.py#L584

I am not sure how to best deal with the Directions. According to docs and unit tests the values of the Directions should be integers. However, using the python taas client with python openstack client from bash sets the values as strings. From my testing the taas accepts both int and str as long as the str can be converted to int and saves the str unchanged (eq '002' is valid and returned as '002'). To not fail when listing or showing Tap Mirrors created by the python client I set the type as str, but I am open to suggestions.

@github-actions github-actions bot added edit:networking This PR updates networking code v2 This PR targets v2 semver:minor Backwards-compatible change labels Aug 11, 2025
// NextPageURL is invoked when a paginated collection of Endpoint groups has
// reached the end of a page and the pager seeks to traverse over a new one.
// In order to do this, it needs to construct the next page's URL.
func (r TapMirrorPage) NextPageURL(endpointURL string) (string, error) {
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.

Suggested change
func (r TapMirrorPage) NextPageURL(endpointURL string) (string, error) {
func (r TapMirrorPage) NextPageURL() (string, error) {

With this change the tests pass in my environment. @kayrus could you commit? I don't have the rights.

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.

Right, the signature for NextPageURL() changed in main via 299f18c. I'll update the backport to use the right signature.

The signature for NextPageURL() changed in main via 299f18c which caused
the backport to fail. Let's use the expected signature for v2 branch.
Copy link
Copy Markdown
Contributor

@mandre mandre left a comment

Choose a reason for hiding this comment

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

The e2e tests succeeded now, however coveralls.io is down and this causes the unit tests to fail at the moment.

@vydrazde
Copy link
Copy Markdown
Contributor

Looks like coveralls.io is back up.

@coveralls
Copy link
Copy Markdown

Coverage Status

coverage: 63.672% (-0.008%) from 63.68%
when pulling 5c06870 on bp-v2-38c1bca-bc9ccfa-2c6c60b
into e073f9e on v2.

@mandre mandre merged commit 6332fe9 into v2 Aug 18, 2025
21 of 25 checks passed
@mandre mandre deleted the bp-v2-38c1bca-bc9ccfa-2c6c60b branch August 18, 2025 07:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

edit:networking This PR updates networking code semver:minor Backwards-compatible change v2 This PR targets v2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants