< Home

Configuring a Huawei Extended Attribute

This section describes how to configure a Huawei extended attribute using the rpc method.

Table 1 Configuring a Huawei extended attribute

Operation

XPATH

edit-config:create

/huawei-aaa-radius:radius/radius-server/hw-ap-info-format

Data Requirement

Table 2 Configuring a Huawei extended attribute

Item

Data

Description

AP's IP address in Huawei extended attribute HW-AP-Information include-ap-ip Set the AP's IP address in Huawei extended attribute HW-AP-Information.

Request Example

<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="123">
 <edit-config>
 <target>
  <running/>
 </target>
 <error-option>rollback-on-error</error-option>
 <config>
  <radius xmlns="urn:huawei:params:xml:ns:yang:huawei-aaa-radius">
   <radius-server xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0" xc:operation="merge">
    <name>test12345</name>
    <vsys>public</vsys>
    <hw-ap-info-format>include-ap-ip</hw-ap-info-format>
   </radius-server>
  </radius>
 </config>
 </edit-config>
</rpc>

Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="123">
  <ok/>
</rpc-reply>

Sample of failed response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="123">
 <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>
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >