[NETCONF-957] Convert mdsal-netconf-tcp to OSGi DS Created: 08/Feb/23  Updated: 08/Feb/23  Resolved: 08/Feb/23

Status: Resolved
Project: netconf
Component/s: netconf
Affects Version/s: None
Fix Version/s: 5.0.2

Type: Improvement Priority: Medium
Reporter: Robert Varga Assignee: Robert Varga
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: Eliminate Blueprint

 Description   

The blueprint here is vacuous, essentially requiring a custom build to make it operational.

Refactor this component to work with Declarative Services and have the component be disabled by default. The component can then be enabled manually using normal OSGi Service Component Runtime operations:

opendaylight-user@root>scr:info org.opendaylight.netconf.tcp.NetconfNorthboundTcpServer
Component Description: org.opendaylight.netconf.tcp.NetconfNorthboundTcpServer
==============================================================================
Class:         org.opendaylight.netconf.tcp.NetconfNorthboundTcpServer
Bundle:        323 (org.opendaylight.netconf.mdsal-netconf-tcp:5.0.2.SNAPSHOT)
Enabled:       false
Immediate:     true
Services:      <<none>>
Config PID(s): [org.opendaylight.netconf.tcp], Policy: optional
Base Props:    (4 entries)
  bindingAddress<String> = 0.0.0.0
  osgi.ds.satisfying.condition.target<String> = (osgi.condition.id=true)
  portNumber<Integer> = 2831
  serverDispatcher.target<String> = (type=netconf-server-dispatcher)

opendaylight-user@root>scr:enable org.opendaylight.netconf.tcp.NetconfNorthboundTcpServer
true

opendaylight-user@root>scr:info org.opendaylight.netconf.tcp.NetconfNorthboundTcpServer
Component Description: org.opendaylight.netconf.tcp.NetconfNorthboundTcpServer
==============================================================================
Class:         org.opendaylight.netconf.tcp.NetconfNorthboundTcpServer
Bundle:        323 (org.opendaylight.netconf.mdsal-netconf-tcp:5.0.2.SNAPSHOT)
Enabled:       false
Immediate:     true
Services:      <<none>>
Config PID(s): [org.opendaylight.netconf.tcp], Policy: optional
Base Props:    (4 entries)
  bindingAddress<String> = 0.0.0.0
  osgi.ds.satisfying.condition.target<String> = (osgi.condition.id=true)
  portNumber<Integer> = 2831
  serverDispatcher.target<String> = (type=netconf-server-dispatcher)

Component Configuration Id: 172
-------------------------------
State:        ACTIVE
Config Props: (6 entries)
  bindingAddress<String> = 0.0.0.0
  component.id<Long> = 172
  component.name<String> = org.opendaylight.netconf.tcp.NetconfNorthboundTcpServer
  osgi.ds.satisfying.condition.target<String> = (osgi.condition.id=true)
  portNumber<Integer> = 2831
  serverDispatcher.target<String> = (type=netconf-server-dispatcher)
References:   (total 2)
  - serverDispatcher: org.opendaylight.netconf.api.NetconfServerDispatcher SATISFIED 1..1 static
    target=(type=netconf-server-dispatcher) scope=bundle collectionType=service (1 binding):
    * Bound to [339] from bundle 265 (mdsal-netconf-impl:5.0.2.SNAPSHOT)
  - osgi.ds.satisfying.condition: org.osgi.service.condition.Condition SATISFIED 1..1 dynamic
    target=(osgi.condition.id=true) scope=bundle (1 binding):
    * Bound to [6] from bundle 0 (org.eclipse.osgi:3.18.0.v20220516-2155)
 

Generated at Wed Feb 07 20:16:20 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.