< Home

Delivering a Virtual License

This section provides a sample of delivering a virtual license using the edit-config method.

Table 1 Virtual license-based configuration

Operation

XPATH

edit-config

/huawei-device/config-virtual-license

Data Requirements

Table 2 Virtual license-based configuration

Item

Data

Description

Control item in the virtual license

VXLAN

The control item in the virtual license is VXLAN.

Resource value of the control item

10

The resource value of the control item is 10.

Expiration date of the control item in the virtual license

2019-08-08

The expiration date of the virtual license is 2019-08-08.

The time for delivering the virtual license

2018-12-29 10:04:28:655

The time for delivering the virtual license is 2018-12-29 10:04:28:655

Key

****

The self-recovery duration is 30 seconds.

Request Example

<?xml version='1.0' encoding='UTF-8'?>
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="0">
  <edit-config>
    <target>
      <running/>
    </target>
    <config>
      <dev:config-virtual-license xmlns:dev="urn:huawei:params:xml:ns:yang:huawei-device">
        <dev:item-list>
          <dev:item-type>vxlan</dev:item-type>
          <dev:item-resource-value>10</dev:item-resource-value>
          <dev:expired-date>2019-08-08</dev:expired-date>
          <dev:config-time>2018-12-29 10:04:28:655</dev:config-time>
        </dev:item-list>
        <dev:magic-word>****</dev:magic-word>
      </dev:config-virtual-license>
    </config>
  </edit-config>
</rpc>

Response Example

Sample of successful response

<?xml version='1.0' encoding='UTF-8'?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
  <ok/>
</rpc-reply>

Sample of failed response

<?xml version='1.0' encoding='UTF-8'?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
  <rpc-error>
    <error-app-tag>1</error-app-tag>
    <error-message>Service process failed.</error-message>
    <error-info>Error on node /huawei-device:config-virtual-license/item-list[item-type="vxlan"]</error-info>
  </rpc-error>
</rpc-reply>
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >