< Home

Configuring the Destination Port Number for the Switch to Send Packets to the Portal Server

This section provides a sample of configuring the destination port number for the switch to send packets to the Portal server using the merge method. You can also use the create method to configure the destination port number for the switch to send packets to the Portal server using the merge method.

Table 1 Configuring the destination port number for the switch to send packets to the Portal server

Operation

XPATH

edit-config:merge

/huawei-aaa-portal/portal/portal-server/destination-port/port

Data Requirement

Table 2 Configuring the destination port number for the switch to send packets to the Portal server

Item

Data

Description

port

555

Set the destination port number for the switch to send packets to the Portal server to 555.

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 xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <portal xmlns="urn:huawei:params:xml:ns:yang:huawei-aaa-portal">
    <portal-server> 
     <name>huawei</name>
     <destination-port>
      <port>555</port>
      <always>true</always>
     </destination-port>
    </portal-server>  
   </portal>
  </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="17">
  <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 >