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

Use a time-based P4RT election ID in tests #446

Merged
merged 7 commits into from Feb 7, 2022
Merged

Conversation

pudelkoM
Copy link
Member

@pudelkoM pudelkoM commented Feb 4, 2022

Allows reconnects without having to manually increasing the ID.

I hit this issue when trying to re-run the integration tests against an existing instance.

See: https://github.com/pins/pins-infra/blob/master/p4_pdpi/p4_runtime_session.h#L52-L61

Copy link
Contributor

@osinstom osinstom left a comment

Choose a reason for hiding this comment

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

Good idea

@osinstom osinstom merged commit ada6849 into master Feb 7, 2022
@osinstom osinstom deleted the time-based-election-id branch February 7, 2022 19:13
pudelkoM added a commit that referenced this pull request Feb 8, 2022
osinstom pushed a commit that referenced this pull request Feb 8, 2022
osinstom pushed a commit that referenced this pull request Feb 18, 2022
This PR replaces the hardcoded election IDs with time based ones in both the PFCP agent P4RT driver and test code. Hopefully this addresses the spurious election ID errors we observe in CI and locally.

For reference:
#457
#446
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants