This section provides a sample of retrieving a virtual license using the edit-config method.
Operation |
XPATH |
---|---|
edit-config |
/huawei-device/config-virtual-license |
Data Requirements
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 |
1 |
The resource value of the control item is 1. |
Expiration date of the control item in the virtual license |
2019-08-08 |
The expiration date of the virtual license is 2019-08-08. |
Request Example
<?xml version='1.0' encoding='UTF-8'?> <rpc message-id="0" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <edit-config> <target> <running/> </target> <config> <dev:config-virtual-license xmlns:dev="urn:huawei:params:xml:ns:yang:huawei-device"> <dev:item-list xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0" xc:operation="remove"> <dev:item-type>vxlan</dev:item-type> <dev:item-resource-value>1</dev:item-resource-value> <dev:expired-date>2019-08-08</dev:expired-date> </dev:item-list> </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="50"> <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>