-
Improvement
-
Resolution: Done
-
Medium
-
None
-
None
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)