Add SchemaSourceRegistration list to NetconfConnectorDTO 39/93039/2
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 14 Oct 2020 06:41:41 +0000 (08:41 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 14 Oct 2020 06:43:01 +0000 (08:43 +0200)
commit91d24fb0e43840a2ccf79ab268a063fec114fd56
treefaa7044efc8592020b5d1b31f70ef89e7127026c
parentc9ebd8a2fda0a73dca363a698294a3a4fc75db6c
Add SchemaSourceRegistration list to NetconfConnectorDTO

When a NetconfDevice is initialized, we keep track of it via
NetconfConnectorDTO. As a device actually can have some YANG Library
source attached to it, we are registering them as well, but we are
failing to unregister them.

Keep the registration list in the DTO and route close requests
towards it -- allowing us to also remove the registrations.

JIRA: NETCONF-675
Change-Id: Id1d5fb2ff23aad766273e22d5f6f6639300fb3a5
Signed-off-by: PeterSuna <peter.suna@pantheon.tech>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
netconf/netconf-topology/src/main/java/org/opendaylight/netconf/topology/AbstractNetconfTopology.java