Yangcli Operations
Establish Connection
These are the steps to establish a connection between the NetConf client and the server running on the device.
Copy
# yangcli server=<ip_address> user=<user_name> password=<password>
ip_address: Address of the device to be managed
user_name & password: User account detail for authentication
The interactive version of this command is shown below:
Copy
# yangcli yangcli> connect
Enter string value for leaf <user>
yangcli:connect> <user_name>
Enter string value for leaf <server>
yangcli:connect> <ip_address>
Enter string value for leaf <password>
yangcli:connect> <password>
The OcNOS NetConf server supports both IPv4 and IPv6 connections.
In NETCONF (Network Configuration Protocol), the maximum number of sessions over SSH is indeed a configurable parameter that can be defined in the netconfd.yang module. Here’s a generalized example of how such a parameter might be defined in a netconfd.yang file.
Copy
leaf max-sessions {
description
"Specifies the maximum number of sessions
that can be accepted.";
type uint32;
default 1024;
}
| • | At present, the netconfdsoftware is utilizing the default setting of 1024 for the max-session parameter. Consequently, the maximum number of concurrent NETCONF sessions is restricted to 1023 due to this default configuration. |
| • | Attempting to create the 1024th session in the netconfd deletes the oldest session with session-id 1 and creates a new session with session-id 1. |
| • | Enabling the OpenConfig Translation feature causes the NETCONF server to restart, necessitating the NETCONF client to reconnect and establish a new session. When enabling the OpenConfig Translation feature, you must specify the namespace to ensure the NETCONF server operates within the correct context. |