This section describes how to configure the idle-cut function for domain users using the rpc method.
Operation |
XPATH |
|---|---|
edit-config:create |
/huawei-aaa:aaa/service-scheme/idle-cut-function |
Item |
Data |
Description |
|---|---|---|
| Period in which an idle user can stay online | 12 | Set the period in which an idle user can stay online to 12 minutes. |
| Traffic threshold for the idle-cut function | 22 | Set the traffic threshold for the idle-cut function to 22 kbytes. |
| Direction of traffic on which the idle-cut function takes effect | inbound | Configure the idle-cut function to take effect on inbound traffic. |
<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>public</vsys>
<idle-cut-function>
<idle-time>12</idle-time>
<idle-flow>
<flow-value>22</flow-value>
<flow-direction>inbound</flow-direction>
</idle-flow>
</idle-cut-function>
</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-type>application</error-type> <error-tag>operation-failed</error-tag> <error-severity>error</error-severity> <error-message>parse rpc config error.</error-message> </rpc-error> </rpc-reply>