Sessions Handling

51 views
Skip to first unread message

Jimmy Armand

unread,
Jun 6, 2012, 2:29:29 PM6/6/12
to NetconfX
Hi.
What would be really nice in netconfx is "openSession capability". Let
me explain myself. When you want to connect the device with neconfx,
you have to create a new connection each time. It would be nice to be
able to create one connection and multiple session within it. You see,
our equipment does not permit mutilple connection but multiple
sessions, yes. Unless you say that's it's possible it would be a nice
feature.

//-- Simple example:
if(! connectionOpen) { //-- Create connection once...
Connection netconfConn = new Connection(hostName,
netconfConn.connect(null,timeout,0);

connectionOpen = true;
}
...
aSession = netconfConn.openSession();
aSession.startSubsystem("netconf");
//-- Wrap the aSession in an object and return the object.

What do you think?

A.V.

unread,
Sep 21, 2012, 3:13:03 PM9/21/12
to netc...@googlegroups.com, jimmy....@gmail.com
That is a good idea - probably something I will try and incorporate into a future release.
It is not *too* complex, just requires a bit of testing...
Reply all
Reply to author
Forward
0 new messages