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

feat(nm): implementation of IPv6 configuration #4786

Merged
merged 12 commits into from
Jul 28, 2023

Conversation

sfiorani
Copy link
Contributor

This PR adds the configuration of IPv6 protocol in the NetworkManager bundle.

New enums to map NM settings and Snapshots settings in Kura

  • Added NMSettingIP6ConfigAddrGenMode and NMSettingIP6ConfigPrivacy enums to map the addr-gen-mode and ip6-privacy NetworkManager's settings
  • Added KuraIp6ConfigurationMethod and KuraIp6Privacy enums that maps Snapshots' values for previous NM's settings
  • Added KuraIp6ConfigurationMethod to map NetworkManager's setting method for IPv6 protocol

IPv6 protocol configuration

In org.eclipse.kura.nm.configuration.NMSettingsConverter, the buildIpv6Settings method is now implemented: the IPv6 configuration can be set according to NetworkManager requirements.

Related Issue: This PR fixes/closes {issue number}

Description of the solution adopted: A more detailed description of the changes made to solve/close one or more issues. If the PR is simple and easy to understand this section can be skipped

Screenshots: If applicable, add screenshots to help explain your solution

Manual Tests: Optional description of the tests performed to check correct functioning of changes, useful for an efficient review

Any side note on the changes made: Description of any other change that has been made, which is not directly linked to the issue resolution [e.g. Code clean up/Sonar issue resolution]

@mattdibi mattdibi self-requested a review July 26, 2023 07:56
…tIp6' method

Signed-off-by: SimoneFiorani <simone.fiorani@abinsula.com>
Signed-off-by: SimoneFiorani <simone.fiorani@abinsula.com>
Signed-off-by: SimoneFiorani <simone.fiorani@abinsula.com>
Signed-off-by: SimoneFiorani <simone.fiorani@abinsula.com>
@mattdibi
Copy link
Contributor

@sfiorani You have a couple of test failures probably due to a missing ip6.status property. Don't worry about it for now since we decided to change how to handle the missing property as per our latest discussion.

Set ip6.status as Optional as we discussed and then fix the tests.

Signed-off-by: SimoneFiorani <simone.fiorani@abinsula.com>
@MMaiero
Copy link
Contributor

MMaiero commented Jul 27, 2023

Signed-off-by: SimoneFiorani <simone.fiorani@abinsula.com>
Signed-off-by: SimoneFiorani <simone.fiorani@abinsula.com>
Signed-off-by: SimoneFiorani <simone.fiorani@abinsula.com>
@mattdibi
Copy link
Contributor

@sfiorani the only missing thing at this point are the unit tests. The production code is 👌

@mattdibi mattdibi marked this pull request as ready for review July 27, 2023 15:30
@MMaiero
Copy link
Contributor

MMaiero commented Jul 28, 2023

@MMaiero
Copy link
Contributor

MMaiero commented Jul 28, 2023

IP check successful

@MMaiero MMaiero merged commit 245be53 into eclipse-kura:develop Jul 28, 2023
2 checks passed
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.

3 participants