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).
License

License

Data Model

The data model file matching the license is huawei-license.yang.

Table 3-2089 Data Model

Object

Description

huawei-license:license-easytouse-config/enable

Enables the ETU license function. The value is of the Boolean type:

  • žtrue
  • žfalse

huawei-license:license-easytouse-config/function/name

Configures the name of the ETU License function item. The value is of the enumerated type:

  • ac: WLAN AC express
  • datae: data service
  • dsvpn: DSVPN
  • sece: security service
  • voicee: voice service

huawei-license:license-easytouse-config/function/enable

Enables the ETU license function. The value is of the Boolean type:

  • žtrue
  • žfalse

huawei-license:license-easytouse-config/resource/name

Configures the name of the ETU License resource item. The value is of the enumerated type:

  • cm: number of phones concurrently calling
  • ips: number of users accessing the intrusion prevention system
  • svpn: number of users accessing the smart VPN

huawei-license:license-easytouse-config/resource/enable

Enables the ETU license function. The value is of the Boolean type:

  • žtrue
  • žfalse

huawei-license:license-easytouse-config/resource/value

Indicates the control value of resource items in the ETU license. The value is an integer and the value range depends on the resource license of the device.

Activating the ETU License Function

This section provides a sample of activating the ETU license function.

Table 3-2090 Activating the ETU license function

Operation

XPATH

edit-config:merge

huawei-license:license-easytouse-config/enable

Data Requirements
Table 3-2091 Activating the ETU license function

Item

Data

Description

ETU license function

true

Activate the ETU license function.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="NETCONFIG_a582906fe0134ffaa4899208dd9175b7">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <license-easytouse-config xmlns="urn:huawei:params:xml:ns:yang:huawei-license" xc:operation="merge">
    <enable>true</enable>
   </license-easytouse-config>
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

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

Deactivating the ETU License Function

This section provides a sample of deactivating the ETU license function.

Table 3-2092 Deactivating the ETU license function

Operation

XPATH

edit-config:remove

huawei-license:license-easytouse-config/enable

Data Requirements
Table 3-2093 Deactivating the ETU license function

Item

Data

Description

ETU license function

true

Deactivate the ETU license function.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="NETCONFIG_a582906fe0134ffaa4899208dd9175b7">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <license-easytouse-config xmlns="urn:huawei:params:xml:ns:yang:huawei-license" xc:operation="remove">
    <enable>true</enable>
   </license-easytouse-config>
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

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

Activating Function Items in the ETU License

This section provides a sample of activating function items in the ETU license.

Table 3-2094 Activating function items in the ETU license

Operation

XPATH

edit-config:merge

huawei-license:license-easytouse-config/function/name

huawei-license:license-easytouse-config/function/enable

Data Requirements
Table 3-2095 Activating function items in the ETU license

Item

Data

Description

ETU license function

true

Activate the function item named ac in ETU license.

Name of function items in the ETU license

ac

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="NETCONFIG_a582906fe0134ffaa4899208dd9175b7">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <license-easytouse-config xmlns="urn:huawei:params:xml:ns:yang:huawei-license" xc:operation="merge">
    <enable>true</enable>
    <function>
     <name>ac</name>
     <enable>true</enable>
    </function>
   </license-easytouse-config>
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

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

Deactivating Function Items in the ETU License

This section provides a sample of deactivating function items in the ETU license.

Table 3-2096 Deactivating function items in the ETU license

Operation

XPATH

edit-config:remove

huawei-license:license-easytouse-config/function/name

huawei-license:license-easytouse-config/function/enable

Data Requirements
Table 3-2097 Deactivating function items in the ETU license

Item

Data

Description

ETU license function

true

Deactivate the function item named ac in ETU license.

Name of function items in the ETU license

ac

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="NETCONFIG_a582906fe0134ffaa4899208dd9175b7">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <license-easytouse-config xmlns="urn:huawei:params:xml:ns:yang:huawei-license" xc:operation="remove">
    <enable>true</enable>
    <function>
     <name>ac</name>
     <enable>true</enable>
    </function>
   </license-easytouse-config>
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

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

Activating Resource Items in the ETU License

This section provides a sample of activating resource items in the ETU license.

Table 3-2098 Activating resource items in the ETU license

Operation

XPATH

edit-config:merge

huawei-license:license-easytouse-config/resource/name

huawei-license:license-easytouse-config/resource/enable

huawei-license:license-easytouse-config/resource/value

Data Requirements
Table 3-2099 Activating resource items in the ETU license

Item

Data

Description

ETU license function

true

Activate the resource item svpn in the ETU license, and the control value of svpn is 2.

Name of resource items in the ETU license

svpn

Control value of resource items in the ETU license

2

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="NETCONFIG_a582906fe0134ffaa4899208dd9175b7">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <license-easytouse-config xmlns="urn:huawei:params:xml:ns:yang:huawei-license" xc:operation="merge">
    <enable>true</enable>
    <resource>
     <name>svpn</name>
     <enable>true</enable>
     <value>2</value>
    </resource>
   </license-easytouse-config>
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

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

Deactivating Resource Items in the ETU License

This section provides a sample of deactivating resource items in the ETU license.

Table 3-2100 Deactivating resource items in the ETU license

Operation

XPATH

edit-config:remove

huawei-license:license-easytouse-config/resource/name

huawei-license:license-easytouse-config/resource/enable

huawei-license:license-easytouse-config/resource/value

Data Requirements
Table 3-2101 Deactivating resource items in the ETU license

Item

Data

Description

ETU license function

true

Deactivate the resource item svpn in the ETU license, and the control value of svpn is 2.

Name of resource items in the ETU license

svpn

Control value of resource items in the ETU license

2

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="NETCONFIG_a582906fe0134ffaa4899208dd9175b7">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <license-easytouse-config xmlns="urn:huawei:params:xml:ns:yang:huawei-license" xc:operation="remove">
    <enable>true</enable>
    <resource>
     <name>svpn</name>
     <enable>true</enable>
     <value>2</value>
    </resource>
   </license-easytouse-config>
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

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

Document ID: EDOC1100022096

Views: 8569

Downloads: 69

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