This section describes how to create a service scheme using the merge method.
Operation |
XPATH |
---|---|
edit-config:merge |
/huawei-aaa:aaa/service-scheme |
Item |
Data |
Description |
---|---|---|
Name of a service scheme |
lsw_serv |
Set the name of a service scheme to lsw_serv. |
Level of a user who logs in to the device as an administrator |
2 |
Set the level of a user who logs in to the device as an administrator to 2. |
Whether to enable the voice VLAN function in a service scheme |
true |
Enable the voice VLAN function in 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> <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>vsys</vsys> <admin-user-privilege-level>2</admin-user-privilege-level> <voice-vlan-enable>true</voice-vlan-enable> </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>Service process failed.</error-message> <error-info>Error on node /huawei-aaa:aaa/service-scheme[name="lsw_servlsw_servlsw_servlsw_servlsw_serv",vsys="vsys"]/name</error-info> </rpc-error> </rpc-reply>