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

Exporter: always use tcp for ser2net #1428

Merged
merged 3 commits into from
Jun 21, 2024

Conversation

Emantor
Copy link
Member

@Emantor Emantor commented Jun 21, 2024

Fix the ser2net version check and support ser2net >=4.6.0.

Checklist

  • PR has been tested

Fixes #1416

@Emantor Emantor requested a review from jluebbe June 21, 2024 09:03
@Emantor Emantor changed the title Topic/ser2net tcp Exporter: always use tcp for ser2net Jun 21, 2024
Turn the version variable into a tuple which consists of (major, minor,
micro). Convert the exit code check to use tuples instead of strings and
also correct the version check for the YAML configuration to use a
tuple.
No functional changes intended.

Signed-off-by: Rouven Czerwinski <[email protected]>
Contrary to the code, ser2net started using the YAML configuration in
version 4.2.0, correct the exporter version check.

Signed-off-by: Rouven Czerwinski <[email protected]>
Always indicate that the network connection should use tcp. This was not
mandatory for versions before 4.6.0, but is for versions afterwards.
This should not impact the behavior for earlier versions, since all
versions since the introduction of YAML configurations in 4.2.0 support
this parameter.

Fixes labgrid-project#1416

Signed-off-by: Rouven Czerwinski <[email protected]>
@jluebbe jluebbe merged commit 0a7bcd0 into labgrid-project:master Jun 21, 2024
9 checks passed
@Emantor Emantor deleted the topic/ser2net-tcp branch June 21, 2024 09:40
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.

Labgrid exporter ser2net fails with Invalid accepter port name/number
2 participants