Skip to content

Add participant locators if new network interfaces are found [12753] #2336

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

Conversation

JLBuenoLopez
Copy link
Contributor

@JLBuenoLopez JLBuenoLopez commented Dec 2, 2021

Currently only network interfaces found when launching Fast DDS are taken into account. This PR adds new participant locators if new network interfaces are detected. In order to trigger the check, the user must call DomainParticipant::set_qos. If some user is using the RTPS layer directly, the feature can also be triggered by calling RTPSParticipant::update_attributes.

This PR includes both the implementation and the Blackbox tests at RTPS and DDS level. It also completes test API, both in the Entities as in the Transport layer.

Related PRs:

Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
@EduPonz EduPonz added this to the v2.5.0 milestone Dec 10, 2021
@EduPonz EduPonz changed the title [12753] Dynamic network interfaces tests Add participant locators if new network interfaces are found [12753] Dec 14, 2021
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
Copy link

@EduPonz EduPonz left a comment

Choose a reason for hiding this comment

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

LGTM

@MiguelCompany
Copy link
Member

@richiprosima Please test this

3 similar comments
@MiguelCompany
Copy link
Member

@richiprosima Please test this

@MiguelCompany
Copy link
Member

@richiprosima Please test this

@MiguelCompany
Copy link
Member

@richiprosima Please test this

@EduPonz EduPonz added the no-aarch Skip build & test for aarch64 label Dec 17, 2021
@EduPonz EduPonz added the no-test Skip CI tests if PR marked with this label label Dec 17, 2021
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
@MiguelCompany MiguelCompany merged commit f3b42cb into feature/dynamic-network-interfaces Dec 17, 2021
@MiguelCompany MiguelCompany deleted the feature/dynamic-network-interfaces-tests branch December 17, 2021 09:35
EduPonz pushed a commit that referenced this pull request Dec 20, 2021
…2361)

* Refs #12754: refactor get default locators when not provided by the user

Signed-off-by: JLBuenoLopez-eProsima <[email protected]>

* Refs #12754: update interfaces RTPS layer

Signed-off-by: JLBuenoLopez-eProsima <[email protected]>

* Refs #12754: link to dds layer

Signed-off-by: JLBuenoLopez-eProsima <[email protected]>

* Refs #12754: linters

Signed-off-by: JLBuenoLopez-eProsima <[email protected]>

* Refs #12754: fix failing Participant tests

Signed-off-by: JLBuenoLopez-eProsima <[email protected]>

* Refs #12754: apply review suggestions

Signed-off-by: JLBuenoLopez-eProsima <[email protected]>

* Refs #12754: ensure PDP update

Signed-off-by: JLBuenoLopez-eProsima <[email protected]>

* Refs #12754: linters. Remove traces

Signed-off-by: JLBuenoLopez-eProsima <[email protected]>

* Refs #12753: override NormalizeLocator test_UDPv4Transport

Signed-off-by: JLBuenoLopez-eProsima <[email protected]>

* Refs #12753: add API to RTPS Blackbox Reader & Writer

Signed-off-by: JLBuenoLopez-eProsima <[email protected]>

* Refs #12753: add RTPS Blackbox test

Signed-off-by: JLBuenoLopez-eProsima <[email protected]>

* Refs #12753: drop unicast packets if simulating no interfaces

Signed-off-by: JLBuenoLopez-eProsima <[email protected]>

* Refs #12753: only run Transport case

Signed-off-by: JLBuenoLopez-eProsima <[email protected]>

* Refs #12753: improve test documentation

Signed-off-by: JLBuenoLopez-eProsima <[email protected]>

* Refs #12753: add DDS blackbox test

Signed-off-by: JLBuenoLopez-eProsima <[email protected]>

* Refs #12753: linters

Signed-off-by: JLBuenoLopez-eProsima <[email protected]>

* Refs #12753: apply review suggestions

Signed-off-by: JLBuenoLopez-eProsima <[email protected]>

* Refs #12753: fix Windows warning

Signed-off-by: JLBuenoLopez-eProsima <[email protected]>

* Refs #12753: improve test documentation

Signed-off-by: JLBuenoLopez-eProsima <[email protected]>

* Refs #12753: fix Windows warning

Signed-off-by: JLBuenoLopez-eProsima <[email protected]>

Co-authored-by: José Luis Bueno López <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-aarch Skip build & test for aarch64 no-test Skip CI tests if PR marked with this label
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants