This section describes how to bind a QoS profile to a service scheme using the rpc method.
Operation  | 
XPATH  | 
|---|---|
edit-config:create  | 
/huawei-aaa:aaa/service-scheme  | 
Item  | 
Data  | 
Description  | 
|---|---|---|
Name of the QoS profile bound to a service scheme  | 
lsw_qos  | 
Bind the QoS profile lsw_qos to a service scheme.  | 
 Before binding a QoS profile to a service scheme, create the QoS profile first using the qos-profile command.
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="43a8e485-35d2-499e-895c-e2d2d5f555a8">
 <edit-config>
 <target>
  <running/>
 </target>
 <error-option>rollback-on-error</error-option>
 <config>
  <aaa xmlns="urn:huawei:params:xml:ns:yang:huawei-aaa">
   <service-scheme xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0" ns0:operation="merge">
    <name>lsw_serv</name>
    <vsys>public</vsys>
    <qos-profile>lsw_qos</qos-profile>
   </service-scheme>
  </aaa>
 </config>
 </edit-config>
</rpc>
Sample of successful response
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="43a8e485-35d2-499e-895c-e2d2d5f555a8"> <ok/> </rpc-reply>
Sample of failed response
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="43a8e485-35d2-499e-895c-e2d2d5f555a8"> <rpc-error> <error-app-tag>-1</error-app-tag> <error-message> Config failed, QOS profile is not configured.</error-message> <error-info>Error on node /huawei-aaa:aaa/service-scheme[name="lsw_serv",vsys="public"]/qos-profile</error-info> </rpc-error> </rpc-reply>