< Home

Creating a Portal Server Template

This section provides a sample of creating a Portal server template using the merge method. You can also use the create method to create a Portal server template.

Table 1 Creating a Portal server template

Operation

XPATH

edit-config:merge

/huawei-aaa-portal/portal/portal-server/name

Data Requirement

Table 2 Portal server template

Item

Data

Description

name

huawei

Create the Portal server template huawei.

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 xc:operation="merge">  
     <name>huawei</name>
    </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="123">
 <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="14">
  <rpc-error>
    <error-app-tag>-1</error-app-tag>
    <error-message>Invalid server name</error-message>
    <error-info>Error on node /huawei-aaa-portal:portal/portal-server[name="portalserverportalserverportalserver"]/name</error-info>
  </rpc-error>
</rpc-reply>
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >