< Home

Configuring the User Priority in a Service Scheme

This section provides a sample of configuring the user priority in a service scheme using the rpc method.

Table 1 Configuring the user priority in a service scheme

Operation

XPATH

edit-config:create

/huawei-aaa:aaa/service-scheme/priority

Data Requirements

Table 2 Configuring the user priority in a service scheme

Item

Data

Description

User priority 1

Set the priority of a VIP user to 1.

Request Example

<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>

Response Example

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>
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic