This section provides a sample of configuring a redirection ACL in the service scheme using the merge method.
Operation |
XPATH |
|---|---|
edit-config:merge |
/huawei-aaa:aaa/service-scheme/redirect-acl |
Item |
Data |
Description |
|---|---|---|
| Number of the redirection ACL | 3000 NOTE:
Ensure that the redirection ACL has been created. |
Set the number of the redirection ACL in service scheme s1 to 3000. |
<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 xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0" xc:operation="merge">
<hw-aaa:name>s1</hw-aaa:name>
<hw-aaa:vsys>sys</hw-aaa:vsys>
<hw-aaa:redirect-acl>
<hw-aaa:acl-id>3000</hw-aaa:acl-id>
</hw-aaa:redirect-acl>
</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