Skip to content

Conversation

@Tobianas
Copy link
Contributor

No description provided.

GnmiSouthboundProvider expected to be provided a path
to initial models from json configuration. Since we
are no longer relying on json configuration, we need
to provide them manually.
@Tobianas Tobianas force-pushed the gnmi branch 2 times, most recently from 1762ddd to 9801f2d Compare November 4, 2025 09:01
Copy link
Collaborator

@ihrasko ihrasko left a comment

Choose a reason for hiding this comment

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

Disable maven-dependency plugin and make cleanups.

@Tobianas Tobianas force-pushed the gnmi branch 3 times, most recently from d307fa0 to 1e5cc28 Compare November 6, 2025 20:33
We do not need this since GnmiSouthboundModule is now component
The point of this rework is to not rely on other
lighty modules to run gnmi. Let's rather use
what is available from opendaylight instead.
@Tobianas Tobianas force-pushed the gnmi branch 2 times, most recently from 33839dc to 2d5fa35 Compare November 10, 2025 09:06
@@ -0,0 +1,66 @@
<?xml version="1.0" encoding="UTF-8"?>
Copy link
Collaborator

Choose a reason for hiding this comment

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

copyright on new files, please

@@ -0,0 +1,3 @@
-noextraheaders: true
Copy link
Collaborator

Choose a reason for hiding this comment

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

what's the purpose of this file?



<properties>
<maven.compiler.source>21</maven.compiler.source>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Java 21 source/target should be inherited from odparent

Copy link
Collaborator

Choose a reason for hiding this comment

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

encoding, too

@@ -0,0 +1,103 @@
/*
Copy link
Collaborator

Choose a reason for hiding this comment

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

where are these files from? what's their purpose?

<dependency>
<groupId>org.opendaylight.aaa</groupId>
<artifactId>aaa-encrypt-service</artifactId>
<groupId>org.bouncycastle</groupId>
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would expect to depend on odlparent/aaa instead

this.gnmiExecutorService, this.appModuleConfig.getGnmiConfiguration(), encryptionService,
this.customReactor);
startAndWaitLightyModule(this.gnmiSouthboundModule);
gnmiSouthboundModule.init();
Copy link
Collaborator

Choose a reason for hiding this comment

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

the next logical step would be to translate this module to OSGI and use @reference gnmiSouthboundModule

final AAAEncryptionService encryptionService,
@Nullable final GnmiConfiguration configuration,
@Nullable final CrossSourceStatementReactor customReactor) {
@Activate
Copy link
Collaborator

Choose a reason for hiding this comment

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

@Activate
public GnmiSouthboundModule(@Reference DataBroker dataBroker, @Reference RpcProviderService rpcProviderService,
@Reference DOMMountPointService domMountPointService, @Reference AAAEncryptionService encryptionService) {
this.dataBroker = Objects.requireNonNull(dataBroker);
Copy link
Collaborator

Choose a reason for hiding this comment

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

requireNonNull() with static import

protected boolean initProcedure() {
LOG.info("Starting lighty gNMI Southbound Module");
final List<YangLoaderService> initialLoaders = prepareByPathLoaders();
@Activate
Copy link
Collaborator

Choose a reason for hiding this comment

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

please check docs how to have multiple @activate methods

.YangModuleInfoImpl.getInstance()
);

public static final Set<YangModuleInfo> OPENCONFIG_YANG_MODELS = Set.of(
Copy link
Collaborator

Choose a reason for hiding this comment

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

optional: in follow-up patches we can use dependency on mdsal/ietf features

Signed-off-by: tobias.pobocik <tobias.pobocik@pantheon.tech>
Signed-off-by: tobias.pobocik <tobias.pobocik@pantheon.tech>
Signed-off-by: tobias.pobocik <tobias.pobocik@pantheon.tech>
Signed-off-by: tobias.pobocik <tobias.pobocik@pantheon.tech>
Signed-off-by: tobias.pobocik <tobias.pobocik@pantheon.tech>
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.

2 participants