Does Rebex SSH Pack support netconf protocol?

0 votes
asked Mar 2 by mberetta (120 points)

I'm wondering if Rebex SSH pack (or other Rebex packs) may help to perform automated tests using the netconf protocol.
Thank and Best Regards,
Marco.

1 Answer

0 votes
answered Mar 5 by Lukas Pokorny (92,870 points)

Unfortunately, none of our components supports the NETCONF protocol.

However, the low-level SshSession class can be used as a transport layer for an implemention of the client-side of NETCONF over SSH. NETCONF over SSH can be accessed as "netconf" subsystem:

// connect and authenticate
var ssh = new SshSession();
ssh.Connect(serverName);
ssh.Authenticate(userName, password);

// request a NETCONF subsystem channel
SshChannel channel = ssh.OpenSession();
channel.RequestSubsystem("netconf");

The SshChannel object makes it possible to read and send raw data over the NETCONF channel. If you implement NETCONF over SSH framing protocol on top of this channel, you would be able to send and read NETCONF messages.

...