This section provides a sample of configuring user authorization information to be delivered to authentication access devices using the merge method.
Operation |
XPATH |
---|---|
edit-config:merge |
/huawei-aaa:aaa/service-scheme/name /huawei-aaa:aaa/service-scheme/remote-authorize/authorize-parameters |
Item |
Data |
Description |
---|---|---|
authorize-parameters |
acl car ucl-group |
- |
<?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> <hw-aaa:aaa xmlns:hw-aaa="urn:huawei:params:xml:ns:yang:huawei-aaa"> <hw-aaa:service-scheme> <hw-aaa:name>xuandong_001</hw-aaa:name> <hw-aaa:vsys>pub</hw-aaa:vsys> <hw-aaa:remote-authorize> <hw-aaa:authorize-parameters>acl car ucl-group</hw-aaa:authorize-parameters> </hw-aaa:remote-authorize> </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="0"> <ok/> </rpc-reply>
Sample of failed response
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="6"> <rpc-error> <error-type>application</error-type> <error-tag>operation-failed</error-tag> <error-severity>error</error-severity> <error-path>/huawei-aaa:aaa/service-scheme[name='xuandong_001'][vsys='pub']/remote-authorize/authorize-parameters</error-path> <error-message>parse rpc config error.(Invalid value "error" in "authorize-parameters" element.).</error-message> </rpc-error> </rpc-reply>