< Home

Configuring the Function of Allowing Voice Terminals to Go Online Without Authentication

This section provides a sample of configuring the function of allowing voice terminals to go online without authentication using the merge method. You can also use the create method to configure the function of allowing voice terminals to go online without authentication.

Table 1 Configuring the function of allowing voice terminals to go online without authentication

Operation

XPATH

edit-config:merge

/huawei-nac:nac-access/configure-mode/unified-mode/authentication-profile/authorize-of-device/device-type

/huawei-nac:nac-access/configure-mode/unified-mode/authentication-profile/authorize-of-device/service-scheme

Data Requirement

Table 2 Configuring the function of allowing voice terminals to go online without authentication

Item

Data

Description

name

authen_pro

Configure the function of allowing voice terminals to go online without authentication. The service scheme must exist on the switch.

device-type

voice

service-scheme

lsw_service

Request Example

<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_012824316d704d43adb16b1a4245d273">
 <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_service</name>
     <vsys>asd</vsys>
    </service-scheme>
   </aaa>
   <nac-access xmlns="urn:huawei:params:xml:ns:yang:huawei-nac">
    <authentication-profile xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0" ns0:operation="merge">
     <name>authen_pro</name>
     <authorize-of-device>
      <device-type>voice</device-type>
      <service-scheme>lsw_service</service-scheme>
     </authorize-of-device>
    </authentication-profile>
   </nac-access>
  </config>
 </edit-config>
</rpc>

Response Example

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="58">
  <rpc-error>
    <error-app-tag>-1</error-app-tag>
    <error-message>bind authen profile failed</error-message>
    <error-info>Error on node /huawei-nac:nac-access/authentication-profile[name="authen_pro"]/authorize-of-device[device-type="voice"]</error-info>
  </rpc-error>
</rpc-reply>
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >