No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

NETCONF YANG API Reference

AR100, AR120, AR160, AR1200, AR2200, AR3200, and AR3600 V300R003

NETCONF YANG API Reference
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
NETCONF

NETCONF

Data Model

The data model file matching the NETCONF is ietf-netconf-server.yang.

Table 3-2116 NETCONF

Object

Description

netconf-server

Indicates that the operation request (creating, deleting, and modifying) object is the NETCONF-related configurations. It is only used to contain sub-objects, but does not have any data meaning.

/ietf-netconf-server:netconf-server/call-home/network-managers/network-manager

Indicates the controller's IP address/domain name and port number.

•Controller IP address: The value is in dotted decimal notation.

•Controller domain name: The value is a string of 1 to 128 case-sensitive characters without spaces.

•The value is an integer that ranges from 1 to 65535.

Modifying the NETCONF Configuration

This section provides a sample of modifying the NETCONF configuration.

NOTE:

By default, the controller has created the Netconf-related configurations, and you do not need to configure them manually.

Table 3-2117 Modifying the NETCONF configuration

Operation

XPATH

edit-config:replace

/ietf-netconf-server:netconf-server/call-home/network-managers/network-manager

Data Requirements
Table 3-2118 Modifying the controller's IP/URL address and port number

Item

Data

Description

Modify the controller's IP address/domain name

192.168.1.15

Modify the controller's IP address/domain name to 192.168.1.15.

Modify the controller's port number

12345

Modify the controller's port number to 12345.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="0"> 
 <edit-config> 
  <target>
   <running/>
  </target> 
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <netconf-server xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-server"> 
    <call-home>
     <network-managers> 
      <network-manager> 
       <name>dsgfsdfffg</name>
       <endpoints> 
        <endpoint> 
         <address>192.168.1.15</address> 
         <port>12345</port> 
        </endpoint> 
       </endpoints>
      </network-manager>
     </network-managers> 
    </call-home> 
   </netconf-server> 
  </config> 
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="0"> 
  <ok/>
</rpc-reply>

Deleting the NETCONF Configuration

This section provides a sample of deleting the NETCONF configuration.

Table 3-2119 Deleting the NETCONF configuration

Operation

XPATH

edit-config:delete

/ietf-netconf-server:netconf-server/call-home/network-managers/network-manager

Data Requirements
Table 3-2120 Deleting the controller's IP/URL address and port number

Item

Data

Description

Delete the controller's IP address/domain name

192.168.1.15

Delete the controller's IP address/domain name 192.168.1.15.

Delete the controller's port number

12346

Delete the controller's port number 12346.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="0"> 
 <edit-config> 
  <target>
   <running/>
  </target> 
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <netconf-server xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-server"  > 
    <call-home>
     <network-managers xc:operation="delete"> 
      <network-manager> 
       <name>dsgfsdffffffffg</name>
       <endpoints> 
        <endpoint> 
         <address>192.168.1.15</address> 
         <port>12346</port> 
        </endpoint> 
       </endpoints>
      </network-manager>
     </network-managers> 
    </call-home> 
   </netconf-server> 
  </config> 
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="0"> 
  <ok/> 
</rpc-reply> 
Translation
Download
Updated: 2019-03-06

Document ID: EDOC1100022096

Views: 9597

Downloads: 69

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next