Move generated YangModelBindingProvider and ResourceYangModuleInfo

Description

We currently generate $YangModuleInfoImpl and $YangModelBindingProvider into org.opendaylight.yang.gen.v1.NAMESPACE package.

The naming of these two classes is rather unfortunate, as it starts with $ due to the requirement not to conflict with other generated classes.

At the end of the day, though, these are separate constructs. Allocate a new top-level package name to host these: org.opendaylight.yang.svc.v1, appended with the namespace, and name these YangModuleInfoImpl and YangModelBindingProviderImpl in that package.

At the end of the day:

  • org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.restconf.subscribed.notifications.rev191117.$YangModelBindingProvider should become org.opendaylight.yang.svc.v1.urn.ietf.params.xml.ns.yang.ietf.restconf.subscribed.notifications.rev191117.YangModelBindingProviderImpl

  • org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.restconf.subscribed.notifications.rev191117.$YangModuleInfoImpl should become org.opendaylight.yang.svc.v1.urn.ietf.params.xml.ns.yang.ietf.restconf.subscribed.notifications.rev191117.YangModuleInfoImplImpl

We already define the leading namespaces in yang.binding.contract.Naming, this needs to be captured there. This also will throw a wrench in assumptions around binding class -> provider/info mapping, so those need to be fixed up, too.

Activity

Show:
Done

Details

Assignee

Reporter

Labels

Components

Fix versions

Priority

Created August 1, 2023 at 6:25 PM
Updated January 26, 2024 at 1:47 PM
Resolved January 18, 2024 at 9:35 AM