Skip to content

Conversation

@tokarenko
Copy link

See #2252

Tobianas and others added 30 commits May 7, 2024 13:36
JIRA: LIGHTY-294
Signed-off-by: tobias.pobocik <[email protected]>
(cherry picked from commit e7a2725)
Start next development iteration towards lighty.io 20.1.0.

Signed-off-by: Ivan Hrasko <[email protected]>
JIRA: LIGHTY-294
Signed-off-by: tobias.pobocik <[email protected]>
(cherry picked from commit 76a31ff)
This timeout caused tests to be unreliable an inconsistent.

JIRA: LIGHTY-299
Signed-off-by: tobias.pobocik <[email protected]>
(cherry picked from commit 70346b0)
The addCallback methods do not need to be implemented since they are default.
Also change the future method to return completed future since it's not chained.

JIRA: LIGHTY-298
Signed-off-by: tobias.pobocik <[email protected]>
(cherry picked from commit 24c3dbe)
Just use .namespace() to return namespace, and if namespace is null, just use name.

JIRA: LIGHTY-298
Signed-off-by: tobias.pobocik <[email protected]>
(cherry picked from commit 04d6fcd)
No need to import these classes when ImmutableNodes
can beused for same purpose.

JIRA: LIGHTY-298
Signed-off-by: tobias.pobocik <[email protected]>
Signed-off-by: Ivan Hrasko <[email protected]>
(cherry picked from commit 8b7fe7f)
This service is no longer required as a part of this rework:
opendaylight/controller@9917911

JIRA: LIGHTY-298
Signed-off-by: tobias.pobocik <[email protected]>
(cherry picked from commit 33b9022)
Use these changes to modernize RPC implementation registration:
opendaylight/lispflowmapping@27c0004

JIRA: LIGHTY-298
Signed-off-by: tobias.pobocik <[email protected]>
(cherry picked from commit 57e185e)
There is no need to bind it again, since it is already bound from DOMSchemaService.

JIRA: LIGHTY-298
Signed-off-by: tobias.pobocik <[email protected]>
(cherry picked from commit 600b033)
Reformat the code a little to improve its readability.

JIRA: LIGHTY-298
Signed-off-by: tobias.pobocik <[email protected]>
(cherry picked from commit 6f16e5e)
Adopt:
- odlparent-13.1.2
- infrautils-6.0.8
- yangtools-13.0.5
- mdsal-13.0.3
- controller-9.0.3
- aaa-0.19.4
- netconf-7.0.5
- bgpcep-0.21.5

JIRA: LIGHTY-302
Signed-off-by: tobias.pobocik <[email protected]>
(cherry picked from commit 85d16a5)
Rename these components according to:
opendaylight/mdsal@c4c6619

JIRA: LIGHTY-302
Signed-off-by: tobias.pobocik <[email protected]>
(cherry picked from commit f7bdd24)
The usage of TokenStore was removed with OAuth2 implementations.
https://git.opendaylight.org/gerrit/c/aaa/+/104968

JIRA: LIGHTY-302
Signed-off-by: tobias.pobocik <[email protected]>
(cherry picked from commit 152d4e5)
Introduce these parameters as a result of:
opendaylight/netconf@4e2e5be#diff-8eddc437230f04d9d277415bdf718dd998114e916aea8bfcba5a2f9bb69e2174R72
and:
opendaylight/netconf@2bb1482#diff-8eddc437230f04d9d277415bdf718dd998114e916aea8bfcba5a2f9bb69e2174R71

Let's currently just hardcode these parameters and resolve their configuration in LIGHTY-305.

JIRA: LIGHTY-302
Signed-off-by: tobias.pobocik <[email protected]>
(cherry picked from commit 9719f72)
Adjust imports based on:
opendaylight/netconf@68f748b

JIRA: LIGHTY-302
Signed-off-by: tobias.pobocik <[email protected]>
(cherry picked from commit 7a604dc)
One constructor of this class got removed, lets just use a workaround for this test where
the localRpcs parameter is not required:
opendaylight/netconf@b372a54#diff-7de3450feabdc63b9c2b21ce40182a3d784e788ae85c31927a36615f2e24080eL66

JIRA: LIGHTY-302
Signed-off-by: tobias.pobocik <[email protected]>
(cherry picked from commit 1a034c6)
This reverts commit 48ce203.

This issue was resolved in netconf 7.0.5.

JIRA: LIGHTY-304
Signed-off-by: tobias.pobocik <[email protected]>
(cherry picked from commit 3d830d5)
Comment these tests out until YANGTOOLS-1575 is resolved.

JIRA: LIGHTY-303
Signed-off-by: tobias.pobocik <[email protected]>
(cherry picked from commit c1c5286)
https://checkstyle.org/releasenotes.html#Release_10.16.0

JIRA: LIGHTY-304
Signed-off-by: tobias.pobocik <[email protected]>
(cherry picked from commit fc94ad8)
Adopt:
odlparent-13.1.3
infrautils-6.0.9
yangtools-13.0.6
mdsal-13.0.4

JIRA: LIGHTY-309
Signed-off-by: Ivan Hrasko <[email protected]>
(cherry picked from commit 19e85c3)
This reverts commit de17d38.

(cherry picked from commit 048eaf1)
Snyk has created this PR to upgrade io.grpc:grpc-netty
from 1.63.0 to 1.64.0.

https://github.com/grpc/grpc-java/releases/tag/v1.64.0

Signed-off-by: Ivan Hrasko <[email protected]>
(cherry picked from commit 0b36799)
snyk-bot and others added 22 commits February 17, 2025 09:21
Snyk has created this PR to upgrade com.google.protobuf:protobuf-java
from 3.25.5 to 3.25.6.

https://github.com/protocolbuffers/protobuf/releases/tag/v3.25.6

Signed-off-by: Ivan Hrasko <[email protected]>
(cherry picked from commit ac1aa11)
Snyk has created this PR to upgrade io.grpc:grpc-netty
from 1.69.1 to 1.70.0.

https://github.com/grpc/grpc-java/releases/tag/v1.70.0

Signed-off-by: Ivan Hrasko <[email protected]>
(cherry picked from commit 6656ea5)
Snyk has created this PR to upgrade org.casbin:jcasbin
from 1.78.0 to 1.79.0.

https://github.com/casbin/jcasbin/releases/tag/v1.79.0

Signed-off-by: Ivan Hrasko <[email protected]>
(cherry picked from commit 1b9a7d2)
Snyk has created this PR to upgrade org.slf4j:slf4j-api
from 2.0.16 to 2.0.17.

https://www.slf4j.org/news.html#2.0.17

Signed-off-by: tobias.pobocik <[email protected]>
(cherry picked from commit b9c33cc)
Snyk has created this PR to upgrade org.casbin:jcasbin
from 1.79.0 to 1.80.0.

https://github.com/casbin/jcasbin/releases/tag/v1.80.0

Signed-off-by: tobias.pobocik <[email protected]>
(cherry picked from commit 5ecc888)
This issue was detected by sonarcloud. Resolve it by sanitising
the LOG message using StringEscapeUtils.

JIRA: LIGHTY-362
Signed-off-by: tobias.pobocik <[email protected]>
(cherry picked from commit 5e19c91)
Snyk has created this PR to upgrade org.casbin:jcasbin
from 1.80.0 to 1.81.0.

https://github.com/casbin/jcasbin/releases/tag/v1.81.0

Signed-off-by: tobias.pobocik <[email protected]>
(cherry picked from commit c96411a)
Snyk has created this PR to upgrade io.grpc:grpc-netty
from 1.70.0 to 1.71.0.

https://github.com/grpc/grpc-java/releases/tag/v1.71.0

Signed-off-by: tobias.pobocik <[email protected]>
(cherry picked from commit a5ac897)
Snyk has created this PR to upgrade commons-io:commons-io
from 2.18.0 to 2.19.0.

https://commons.apache.org/proper/commons-io/changes.html#a2.19.0
Signed-off-by: tobias.pobocik <[email protected]>
(cherry picked from commit 82a5ea7)
Use the latest minikube setup and bump minikube
and kubernetes accordingly.
https://github.com/manusa/actions-setup-minikube/releases/tag/v2.14.0

JIRA: LIGHTY-367
Signed-off-by: tobias.pobocik <[email protected]>
(cherry picked from commit 33f8f6f)
Snyk has created this PR to upgrade io.grpc:grpc-netty
from 1.71.0 to 1.72.0.

https://github.com/grpc/grpc-java/releases/tag/v1.72.0

Signed-off-by: tobias.pobocik <[email protected]>
(cherry picked from commit 50f47ae)
Snyk has created this PR to upgrade com.google.protobuf:protobuf-java
from 3.25.6 to 3.25.7.

https://github.com/protocolbuffers/protobuf/releases/tag/v3.25.7
Signed-off-by: tobias.pobocik <[email protected]>
(cherry picked from commit 89f6772)
Snyk has created this PR to upgrade org.apache.commons:commons-collections4
from 4.4 to 4.5.0.

https://commons.apache.org/proper/commons-collections/changes.html#a4.5.0

Signed-off-by: tobias.pobocik <[email protected]>
(cherry picked from commit 7dee18e)
Update the Dockerfile to use JSON array syntax to ensure the entrypoint works
properly. Also use uppercase AS and FROM to resolve warnings.

https://hackernoon.com/fix-dockerfile-error-warn-fromascasing-as-and-from-keywords-casing-do-not-match
https://docs.docker.com/reference/build-checks/json-args-recommended/

This resolves previous issues where Controller could not connect to simulator.

JIRA: LIGHTY-367
Signed-off-by: tobias.pobocik <[email protected]>
(cherry picked from commit 78efdc2)
Running netconf-simulator using docker while running controller using
kubernetes created all sorts of networking separation issues.

Running both of them using kubernetes makes the code more robust and
reduces the chance of experiencing networking separation issues.

JIRA: LIGHTY-367
Signed-off-by: tobias.pobocik <[email protected]>
(cherry picked from commit f3d0f6d)
Snyk has created this PR to upgrade org.apache.logging.log4j:log4j-api
from 2.24.3 to 2.25.0.

https://github.com/apache/logging-log4j2/releases/tag/rel%2F2.25.0

Signed-off-by: tobias.pobocik <[email protected]>
(cherry picked from commit b062989)
Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Summary of Changes

Hello @tokarenko, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request resolves an issue in the gNMI path key generation logic within the lighty-gnmi module. The core change ensures that when a key value is a QName, only its local name is used, preventing the unintended inclusion of namespace details in the gNMI path keys. This aligns the key generation with the expected gNMI path format and addresses the reported problem.

Highlights

  • gNMI Path Key Generation Fix: Modified the YangInstanceIdentifierToPathCodec to correctly handle QName values when generating gNMI path keys. Previously, the full QName (including namespace) might have been used, but now only the localName is extracted, ensuring keys exclude namespace information as intended.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in issue comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist is currently in preview and may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments to provide feedback.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

The code changes address the issue of excluding namespaces from gNMI path keys. A potential NullPointerException vulnerability was identified and a defensive null check was suggested to improve robustness.

Copy link
Author

@tokarenko tokarenko left a comment

Choose a reason for hiding this comment

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

Done

@ihrasko ihrasko changed the base branch from 20.x to main September 3, 2025 14:06
@ihrasko ihrasko requested a review from Tobianas September 9, 2025 08:43
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.

4 participants