This section describes how to bind a UCL group to a service scheme using the rpc method.
Operation  | 
XPATH  | 
|---|---|
edit-config:create  | 
/huawei-aaa:aaa/service-scheme  | 
Item  | 
Data  | 
Description  | 
|---|---|---|
| Name of a UCL group bound to a service scheme | lsw_ucl | Bind the UCL group lsw_ucl to a service scheme.  | 
<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>
  <nac-access xmlns="urn:huawei:params:xml:ns:yang:huawei-nac">
   <ucl-group xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0" ns0:operation="merge">
    <index>31</index>
    <name>lsw_ucl</name> 
    <ip>
     <ip>10.1.1.1</ip>
     <prefix-length>24</prefix-length>
    </ip>
   </ucl-group>
  </nac-access>
  <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>
    <ucl-group>lsw_ucl</ucl-group>
   </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> The ucl-group is not exist.</error-message> <error-info>Error on node /huawei-aaa:aaa/service-scheme[name="lsw_serv",vsys="public"]/ucl-group</error-info> </rpc-error> </rpc-reply>