This section provides a sample of configuring the user priority in a service scheme using the rpc method.
Operation |
XPATH |
---|---|
edit-config:create |
/huawei-aaa:aaa/service-scheme/priority |
Item |
Data |
Description |
---|---|---|
User priority | 1 | Set the priority of a VIP user to 1. |
<rpc message-id="1" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <edit-config> <target> <running/> </target> <config> <hw-aaa:aaa xmlns:hw-aaa="urn:huawei:params:xml:ns:yang:huawei-aaa"> <hw-aaa:service-scheme> <hw-aaa:name>test1</hw-aaa:name> <hw-aaa:vsys>pub</hw-aaa:vsys> <hw-aaa:priority xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0" xc:operation="merge">1</hw-aaa:priority> </hw-aaa:service-scheme> </hw-aaa:aaa> </config> </edit-config> </rpc>
Sample of successful response
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1"> <ok/> </rpc-reply>
Sample of failed response
<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-aaa:aaa/service-scheme[name="lsw_serv",vsys="public"]/priority</error-info> </rpc-error> </rpc-reply>