beautypg.com

Closing sessions, Netconf commands and specifications, Error handling – Brocade Multi-Service IronWare Administration Guide (Supporting R05.6.00) User Manual

Page 315: Configuring netconf server

background image

Multi-Service IronWare Administration Guide

297

53-1003028-02

Basic NETCONF operations

8

]]>]]>

Error handling

The

error-option

element contains the

stop-on-error

value. The

stop-on-error

value aborts

the

edit-config

operation on the first error. All the configuration items before the error are

already applied on the system. This is the default error option.

After receiving the complete

edit-config

RPC, the configuration items specified in the XML are

applied sequentially as per the order specified in the YANG. If all the configuration items are
successfully applied, an

element is sent in the

element. Otherwise, an

element with the details of the error is sent in the

element.

Closing sessions

The NETCONF

operation is used for gracefully closing the current NETCONF

session. The

operation uses no additional parameters.

When a NETCONF server receives a

request, the server releases resources

associated with the session and closes the underlying SSH connection. Any NETCONF requests
received after a

request are ignored. If the device is able to close the

connection, an

element is sent that includes an

element. Otherwise, an

element with the details of the error is sent in the

element.

NETCONF commands and specifications

The following sections describe the configuration of NETCONF using the CLI and the associated
show commands, the syslog messages, and the system limitations of NETCONF.

Configuring NETCONF server

To enable the NETCONF server on a device, enter the following command.

Brocade(config)# netconf server

Brocade# netconf server?

server Enable NETCONF server functionality

When no port number is specified, the command applies to the default port (830).

To enable the NETCONF server for a specific port, enter the following command.

Brocade(config)# netconf server port 2001

Syntax: [no] netconf server [port port-number]

The port option allows you to enable NETCONF on a non-default port.

The port-number variable specifies the port number of the device. The range is from 1 through
65535.

Both the SSH server and the NETCONF server must be enabled to establish a NETCONF session.
The netconf server command displays the following warning message if the SSH server
configuration is disabled.

Warning: SSH server is disabled. Please enable the SSH server.