This section describes how to apply the RADIUS server template in a domain using the merge method.
Operation |
XPATH |
---|---|
edit-config:merge |
/huawei-aaa:aaa/huawei-aaa:aaa-domain/huawei-aaa-radius:radius-server/huawei-aaa-radius:radius-server |
Item |
Data |
Description |
---|---|---|
Domain name. |
domain1 | Create a domain named domain1. |
Name of the RADIUS server template that is applied in the domain. |
rds | Apply the RADIUS server template named rds in the domain. |
<rpc message-id="10" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <edit-config> <target> <running/> </target> <config> <hw-aaa-radius:radius xmlns:hw-aaa-radius="urn:huawei:params:xml:ns:yang:huawei-aaa-radius"> <hw-aaa-radius:radius-server> <hw-aaa-radius:name>rds</hw-aaa-radius:name> <hw-aaa-radius:vsys>public</hw-aaa-radius:vsys> <hw-aaa-radius:authentication-server> <hw-aaa-radius:server-ip-address>10.1.1.1</hw-aaa-radius:server-ip-address> <hw-aaa-radius:port>1816</hw-aaa-radius:port> <hw-aaa-radius:shared-key>huawei@123</hw-aaa-radius:shared-key> <hw-aaa-radius:weight>100</hw-aaa-radius:weight> </hw-aaa-radius:authentication-server> <hw-aaa-radius:accounting-server> <hw-aaa-radius:server-ip-address>10.1.1.1</hw-aaa-radius:server-ip-address> <hw-aaa-radius:port>1817</hw-aaa-radius:port> <hw-aaa-radius:shared-key>huawei@123</hw-aaa-radius:shared-key> <hw-aaa-radius:weight>100</hw-aaa-radius:weight> </hw-aaa-radius:accounting-server> </hw-aaa-radius:radius-server> </hw-aaa-radius:radius> <hw-aaa:aaa xmlns:hw-aaa="urn:huawei:params:xml:ns:yang:huawei-aaa"> <hw-aaa:aaa-domain> <hw-aaa:name>domain1</hw-aaa:name> <hw-aaa:vsys>public</hw-aaa:vsys> <hw-aaa-radius:radius-server xmlns:hw-aaa-radius="urn:huawei:params:xml:ns:yang:huawei-aaa-radius"> <hw-aaa-radius:radius-server>rds</hw-aaa-radius:radius-server> </hw-aaa-radius:radius-server> </hw-aaa:aaa-domain> </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="10"> <ok/> </rpc-reply>
Sample of failed response
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="10"> <rpc-error> <error-app-tag>-1</error-app-tag> <error-message>config/undo scheme failed</error-message> <error-info>Error on node /huawei-aaa:aaa/aaa-domain[name="domain1",vsys="ads"]/authentication-scheme</error-info> </rpc-error> </rpc-reply>