[NETCONF-554] Remove protocol framework Created: 11/Aug/18  Updated: 08/Jan/19  Resolved: 08/Jan/19

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

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

Issue Links:
Blocks
is blocked by NETCONF-555 Bump mina-sshd to 2.0.0 Resolved
Relates
relates to NETCONF-590 Refactor NETCONF transport layer Resolved

 Description   

Protocol framework has been long deprecated and it really just makes the code non-navigable. While this requires quite a bit of refactoring to arrive at a clean design, it should be done as soon as possible.



 Comments   
Comment by Robert Varga [ 04/Jan/19 ]

We essentially need to separate out individual connection handling into proper RFC6241 stack. Preliminary break down looks something like this:

 

RFC6241 figure 1 Concern Configuration Implementations Interface towards upper layer In scope of this issue
Transport Establish an authenticated channel host, port, authentication handler TCP, TLS, SSH Netty Channel Yes
Messages Establish and maintain message encoding,
manipulating Netty ChannelPipeline
HELLO message content   NetconfSession Yes
Protocol Message dispatch EXI parameters   NetconfOperation No
Content ???       No

This brackets the parts that this issue addresses:

  • separation of transport implementation configuration
  • separation of channel establishment (note NETCONF-571)
  • NetconfSession lifecycle in terms of startup, shutdown and re-establishment

The interface between Messages and Protocol/Content layers (i.e. how we decode XML) is not in scope of this issue and should be addressed separately, once this and NETCONF-571 is addressed.

 

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