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).
Establishing the NETCONF Session

Establishing the NETCONF Session

To establish a NETCONF session, the server and client must exchange their supported capability sets. They can continue the interaction only after receiving the capability sets from the peer.

  • Hello packet sent by the server
<?xml version="1.0" encoding="UTF-8"?> 
<hello xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> 
  <capabilities> 
    <capability>urn:ietf:params:netconf:base:1.0</capability> 
    <capability>urn:ietf:params:netconf:base:1.1</capability> 
    <capability>urn:ietf:params:netconf:capability:writable-running:1.0</capability> 
    <capability>urn:ietf:params:netconf:capability:rollback-on-error:1.0</capability> 
    <capability>urn:ietf:params:netconf:capability:interleave:1.0</capability> 
    <capability>urn:ietf:params:netconf:capability:notification:1.0</capability> 
    <capability>urn:ietf:params:netconf:capability:with-defaults:1.0?basic-mode=explicit&amp;also-supported=report-all,trim,explicit</capability> 
    <capability>urn:ietf:params:netconf:capability:url:1.0?scheme=scp,file</capability> 
    <capability>urn:huawei:params:xml:ns:yang:huawei-system?module=huawei-system&amp;revision=2015-05-14</capability> 
    <capability>urn:huawei:params:xml:ns:yang:huawei-aspf?module=huawei-aspf&amp;revision=2014-11-24</capability> 
    <capability>urn:huawei:params:xml:ns:yang:huawei-administrator?module=huawei-administrator&amp;revision=2015-03-24</capability> 
    <capability>urn:huawei:params:xml:ns:yang:huawei-nat-address-group?module=huawei-nat-address-group&amp;revision=2015-05-05</capability> 
    <capability>urn:huawei:params:xml:ns:yang:huawei-ipsec?module=huawei-ipsec&amp;revision=2015-05-16</capability> 
    <capability>urn:huawei:params:xml:ns:yang:huawei-hrp?module=huawei-hrp&amp;revision=2015-06-01</capability> 
    <capability>urn:huawei:params:xml:ns:yang:huawei-vrrp?module=huawei-vrrp&amp;revision=2015-06-01</capability> 
    <capability>urn:ietf:params:xml:ns:yang:ietf-system?module=ietf-system&amp;revision=2014-08-06</capability> 
    <capability>urn:huawei:params:xml:ns:yang:huawei-snmp?module=huawei-snmp&amp;revision=2015-03-21</capability> 
    <capability>urn:ietf:params:xml:ns:yang:ietf-snmp?module=ietf-snmp&amp;revision=2014-12-10</capability> 
    <capability>urn:huawei:params:xml:ns:yang:huawei-slb?module=huawei-slb&amp;revision=2015-05-06</capability> 
    <capability>urn:huawei:params:xml:ns:yang:huawei-iplink?module=huawei-iplink&amp;revision=2015-06-08</capability> 
    <capability>urn:huawei:params:xml:ns:yang:huawei-traffic-policy?module=huawei-traffic-policy&amp;revision=2015-04-09</capability> 
    <capability>urn:huawei:params:xml:ns:yang:huawei-traffic-profile?module=huawei-traffic-profile&amp;revision=2015-04-09</capability> 
    <capability>urn:huawei:params:xml:ns:yang:huawei-report?module=huawei-report&amp;revision=2015-05-15</capability> 
    <capability>urn:huawei:params:xml:ns:yang:huawei-license?module=huawei-license&amp;revision=2015-05-15</capability> 
    <capability>urn:huawei:params:xml:ns:yang:huawei-log?module=huawei-log&amp;revision=2015-05-15</capability> 
    <capability>urn:huawei:params:xml:ns:yang:huawei-syslog?module=huawei-syslog&amp;revision=2015-05-15</capability> 
    <capability>urn:ietf:params:xml:ns:yang:ietf-syslog?module=ietf-syslog&amp;revision=2015-02-23</capability> 
    <capability>urn:huawei:params:xml:ns:yang:huawei-nat-server?module=huawei-nat-server&amp;revision=2015-05-11</capability> 
    <capability>urn:ietf:params:xml:ns:yang:ietf-ip?module=ietf-ip&amp;revision=2014-06-16</capability> 
    <capability>urn:huawei:params:xml:ns:yang:hw-ipv4-static-route?module=huawei-ipv4-static-route&amp;revision=2015-03-21</capability> 
    <capability>urn:ietf:params:xml:ns:yang:ietf-routing?module=ietf-routing&amp;revision=2015-04-17</capability> 
    <capability>urn:huawei:params:xml:ns:yang:huawei-acl?module=huawei-acl&amp;revision=2015-05-15</capability> 
    <capability>urn:ietf:params:xml:ns:yang:ietf-packet-fields?module=ietf-packet-fields&amp;revision=2015-03-04</capability> 
    <capability>urn:ietf:params:xml:ns:yang:ietf-inet-types?module=ietf-inet-types&amp;revision=2010-09-24</capability> 
    <capability>urn:ietf:params:xml:ns:yang:ietf-acl?module=ietf-acl&amp;revision=2015-03-04</capability> 
    <capability>urn:huawei:params:xml:ns:yang:huawei-interface?module=huawei-interface&amp;revision=2015-04-09</capability> 
    <capability>urn:huawei:params:xml:ns:yang:huawei-policy-routing?module=huawei-policy-routing&amp;revision=2015-05-06</capability> 
    <capability>urn:huawei:params:xml:ns:yang:huawei-nat-policy?module=huawei-nat-policy&amp;revision=2015-05-15</capability> 
    <capability>urn:huawei:params:xml:ns:yang:huawei-security-policy?module=huawei-security-policy&amp;revision=2015-05-20</capability> 
    <capability>urn:huawei:params:xml:ns:yang:huawei-time-range?module=huawei-time-range&amp;revision=2015-07-07</capability> 
    <capability>urn:huawei:params:xml:ns:yang:huawei-service-set?module=huawei-service-set&amp;revision=2015-05-20</capability> 
    <capability>urn:huawei:params:xml:ns:yang:huawei-address-set?module=huawei-address-set&amp;revision=2015-05-20</capability> 
    <capability>urn:huawei:params:xml:ns:yang:huawei-tunnel?module=huawei-tunnel&amp;revision=2015-04-24</capability> 
    <capability>urn:huawei:params:xml:ns:yang:huawei-gre?module=huawei-gre&amp;revision=2015-04-24</capability> 
    <capability>urn:ietf:params:xml:ns:yang:ietf-syslog-types?module=ietf-syslog-types&amp;revision=2014-10-24</capability> 
    <capability>urn:huawei:params:xml:ns:yang:huawei-security-zone?module=huawei-security-zone&amp;revision=2015-05-13</capability> 
    <capability>urn:huawei:params:xml:ns:yang:huawei-eth-trunk?module=huawei-eth-trunk&amp;revision=2015-04-09</capability> 
    <capability>urn:huawei:params:xml:ns:yang:huawei-vlan?module=huawei-vlan&amp;revision=2014-08-18</capability> 
    <capability>urn:ietf:params:xml:ns:yang:iana-if-type?module=iana-if-type&amp;revision=2014-05-08</capability> 
    <capability>urn:ietf:params:xml:ns:yang:ietf-interfaces?module=ietf-interfaces&amp;revision=2014-05-08</capability> 
    <capability>urn:huawei:params:xml:ns:yang:huawei-vsys?module=huawei-vsys&amp;revision=2015-05-06</capability> 
    <capability>urn:huawei:params:xml:ns:yang:huawei-system-common?module=huawei-system-common&amp;revision=2015-05-13</capability> 
    <capability>urn:huawei:params:xml:ns:yang:huawei-system-type?module=huawei-system-type&amp;revision=2015-05-13</capability> 
    <capability>urn:huawei:params:xml:ns:yang:huawei-object-type?module=huawei-object-type&amp;revision=2015-05-13</capability> 
    <capability>urn:huawei:params:xml:ns:yang:huawei-policy-type?module=huawei-policy-type&amp;revision=2015-05-13</capability> 
    <capability>urn:huawei:params:xml:ns:yang:huawei-network-type?module=huawei-network-type&amp;revision=2015-05-13</capability> 
    <capability>urn:cesnet:tmc:netopeer:1.0?module=netopeer-cfgnetopeer&amp;revision=2013-02-14</capability> 
    <capability>urn:ietf:params:xml:ns:yang:ietf-netconf-server?module=ietf-netconf-server&amp;revision=2014-01-24</capability> 
    <capability>urn:ietf:params:xml:ns:yang:ietf-x509-cert-to-name?module=ietf-x509-cert-to-name&amp;revision=2013-03-26</capability> 
    <capability>urn:ietf:params:xml:ns:yang:ietf-netconf-acm?module=ietf-netconf-acm&amp;revision=2012-02-22</capability> 
    <capability>urn:ietf:params:xml:ns:yang:ietf-netconf-with-defaults?module=ietf-netconf-with-defaults&amp;revision=2010-06-09</capability> 
    <capability>urn:ietf:params:xml:ns:netconf:notification:1.0?module=notifications&amp;revision=2008-07-14</capability> 
    <capability>urn:ietf:params:xml:ns:netmod:notification?module=nc-notifications&amp;revision=2008-07-14</capability> 
    <capability>urn:ietf:params:xml:ns:yang:ietf-netconf-notifications?module=ietf-netconf-notifications&amp;revision=2011-08-07</capability> 
    <capability>urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring?module=ietf-netconf-monitoring&amp;revision=2010-10-04</capability> 
    <capability>urn:ietf:params:xml:ns:netconf:base:1.0?module=ietf-netconf&amp;revision=2011-03-08</capability> 
    <capability>urn:ietf:params:xml:ns:yang:ietf-yang-types?module=ietf-yang-types&amp;revision=2013-07-15</capability> 
  </capabilities> 
  <session-id>1227</session-id> 
</hello> 
]]>]]>
  • Hello packet sent by the client
<?xml version="1.0" encoding="UTF-8"?> 
<hello xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> 
  <capabilities> 
    <capability>urn:ietf:params:netconf:base:1.0</capability> 
    <capability>urn:ietf:params:netconf:capability:writable-running:1.0</capability> 
    <capability>urn:ietf:params:netconf:capability:candidate:1.0</capability> 
    <capability>urn:ietf:params:netconf:capability:confirmed-commit:1.0</capability> 
    <capability>http://www.huawei.com/netconf/capability/discard-commit/1.0</capability> 
    <capability>urn:ietf:params:netconf:capability:startup:1.0</capability> 
    <capability>urn:ietf:params:netconf:capability:rollback-on-error:1.0</capability> 
    <capability>http://www.huawei.com/netconf/capability/sync/1.2</capability> 
    <capability>http://www.huawei.com/netconf/capability/sync/1.1</capability> 
    <capability>http://www.huawei.com/netconf/capability/sync/1.0</capability> 
    <capability>http://www.huawei.com/netconf/capability/exchange/1.0</capability> 
    <capability>http://www.huawei.com/netconf/capability/exchange/1.1</capability> 
    <capability>http://www.huawei.com/netconf/capability/active/1.0</capability> 
    <capability>http://www.huawei.com/netconf/capability/action/1.0</capability> 
    <capability>http://www.huawei.com/netconf/capability/execute-cli/1.0</capability> 
    <capability>http://www.huawei.com/netconf/capability/update/1.0</capability> 
    <capability>http://www.huawei.com/netconf/capability/commit-description/1.0</capability> 
  </capabilities> 
</hello> 
]]>]]>

In the preceding packet, the content between <capabilities> and </capabilities> indicates the capability sets supported by the server and client. The hello packet sent by the server contains the <session-id> tag. This XML file indicates the session ID allocated by the server to uniquely identify a session.

Translation
Download
Updated: 2019-03-06

Document ID: EDOC1100022096

Views: 9552

Downloads: 69

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