NETCONF Commands

This module describes the commands used to use the NETCONF configuration protocol to define network operations with data models.

For detailed information about gRPC concepts, configuration tasks, and examples, see the Use NETCONF Protocol to Define Network Operations with Data Modelsin the Cisco 8000 Series Router module in the Programmability Configuration Guide for Cisco 8000 Series Routers.

NETCONF uses an Extensible Markup Language (XML)-based data encoding for the configuration data, as well as protocol messages.

netconf-yang agent

To set the netconf-yang agent details such as netconf-yang version and netconf-yang session limits, use the netconf-yang agent command in the Global Configuration mode.

To remove the configured session version and limits, use the no form of the command.

netconf-yang agent { netconf1.0 | session { limit | value } }

Syntax Description

limit value

Sets the maximum count for concurrent netconf-yang sessions. The range is 1–1024.

session

Netconf -yang-agent session. You can provide the session settings, such as absolute, idle session time, number of sessions using this command.

netconf1.0

Provides NETCONF version 1.0 support as per the RFC-4741 and RFC-4742.

Command Default

By default, no limits are set

Command Modes

Global Configuration mode

Command History

Release Modification

Release 5.3.1

This command was introduced.

Usage Guidelines

No specific guidelines impact the use of this command.

Task ID

Task ID Operation

config-services

read, write

Examples

This command shows how to use the netconf-yang agent command:

Router# config
Router(config)# netconf-yang agent netconf1.0
Router(config)# netconf-yang agent session limit 10
                
/*limit value sets the maximum count for concurrent netconf-yang sessions. The range is from 1 to 128.*/
Router# end