4.8. NETCONF Configuration Command Reference

This section provides the NETCONF configuration command reference. Topics in this section include:

4.8.1. Command Hierarchies

4.8.1.1. NETCONF System Commands

config
— system
— capabilities
[no] candidate
[no] shutdown
— yang-modules
[no] nokia-modules

4.8.1.2. NETCONF Security Commands

config
— system
— security
— profile profile-id
[no] kill-session
[no] lock

4.8.2. Configuration Commands

4.8.2.1. NETCONF System Commands

shutdown

Syntax 
[no] shutdown
Context 
config>system>netconf
Description 

This command disables the NETCONF server. The shutdown command is blocked if there are any active NETCONF sessions. Use the admin disconnect command to disconnect all NETCONF sessions before shutting down the NETCONF service.

candidate

Syntax 
[no] candidate
Context 
config>system>netconf>capabilities
Description 

This command enables or disables support of the candidate datastore in the SR OS NETCONF server. If the candidate is disabled then requests that reference the candidate datastore return an error, and when a NETCONF client establishes a new session the candidate capability is not advertised in the SR OS <hello>. This command also controls support of the <commit> and <discard-changes> operations.

Default 

candidate

writable-running

Syntax 
[no] writable-running
Context 
config>system>netconf>capabilities
Description 

This command enables or disables support of the writable-running capability in the SR OS NETCONF server. If writable-running is disabled then requests that reference the running datastore as a target return an error, and when a NETCONF client establishes a new session the writable-running capability is not advertised in the SR OS <hello>.

Default 

writable-running

base-r13-modules

Syntax 
[no] base-r13-modules
Context 
config>system>netconf>yang-modules
Description 

This command enables or disables support of the Base-R13 YANG modules in the SR OS NETCONF server. If the base-r13-modules are disabled then requests that reference the Base-R13 modules return an error, and when a NETCONF client establishes a new session the Base-R13 modules are not advertised in the SR OS <hello>.

Default 

base-r13-modules

nokia-modules

Syntax 
[no] nokia-modules
Context 
config>system>netconf>yang-modules
Description 

This command enables or disables support of the Nokia YANG modules in the SR OS NETCONF server. If the nokia-modules are disabled then requests that reference the Nokia modules return an error, and when a NETCONF client establishes a new session the Nokia modules are not advertised in the SR OS <hello>.

Default 

nokia-modules

4.8.2.2. NETCONF Security Commands

netconf

Syntax 
netconf
Context 
config>system>security>profile
Description 

This command authorizes netconf capability for the user.

base-op-authorization

Syntax 
base-op-authorization
Context 
config>system>security>profile>netconf
Description 

This command enables the context where permission to use various NETCONF operations is controlled.

kill-session

Syntax 
[no] kill-session
Context 
config>system>security>profile>netconf>base-op-authorization
Description 

This operation authorizes a user associated with the profile to send a kill session NETCONF operation. This kill session operation allows a NETCONF client to kill another NETCONF session, but not the session in which the operation is requested.

Default 

no kill-session

lock

Syntax 
[no] lock
Context 
config>system>security>profile>netconf>base-op-authorization
Description 

This operation authorizes a user associated with the profile to send a lock NETCONF operation. This lock operation allows a NETCONF client to lock the running datastore or the candidate datastore.

Default 

no lock