This section provides a sample of enabling the CNA bypass function of iOS using the merge method. You can also use the create method to enable the CNA bypass function of iOS.
Operation |
XPATH |
|---|---|
edit-config:merge |
/huawei-nac-portal:portal-access/captive-option |
Item |
Data |
Description |
|---|---|---|
captive-option |
bypass |
Enable the CNA bypass function of iOS. |
<edit-config xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<target>
<running/>
</target>
<error-option>rollback-on-error</error-option>
<config>
<portal-access xmlns="urn:huawei:params:xml:ns:yang:huawei-nac-portal">
<captive-option xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0" ns0:operation="merge">bypass</captive-option>
</portal-access>
</config>
</edit-config>
Sample of successful response
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_012824316d704d43adb16b1a4245d273"> <ok/> </rpc-reply>
Sample of failed response
<?xml version='1.0' encoding='UTF-8'?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="39">
<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>