No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

NETCONF YANG API Reference

AR100, AR120, AR160, AR1200, AR2200, AR3200, and AR3600 V300R003

NETCONF YANG API Reference
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
User-defined Application Group

User-defined Application Group

Data Model

The data model file matching the user-defined application group is huawei-application-group.yang.

Table 3-2037 User-defined application group

Node

Description

huawei-application-group:application-groups

Indicates that the file is used to obtain the configuration of an application. It does not have any data meaning.

huawei-application-group:application-groups/vsys/application-group/name

Indicates the name of a user-defined application group. The value is a string of 1 to 32 characters, and the question mark (?), comma (,), quotation mark ("), and hyphen (-) are not supported.

huawei-application-group:application-groups/vsys/application-group/application-object

Indicates the name of an application protocol.

huawei-application-group:application-groups/vsys/application-group/description

Indicates the description of an application group. The value is a string of 1 to 128 case-sensitive characters without spaces. When double quotation marks are used around the string, spaces are allowed in the string.

Creating a User-defined Application Group

This section provides a sample of creating a user-defined application group.

Table 3-2038 Creating a user-defined application group

Operation

XPATH

edit-config:merge

huawei-application-group:application-groups

Data Requirements
Table 3-2039 Creating a user-defined application group

Item

Data

Description

Name of a user-defined application group

Group1

Create a user-defined application group named Group1. Set the description of the application group to Application_Group_1, and add application protocols BT and FTP to the application group.

Description of a user-defined application group

Application_Group_1

Name of an application protocol

BT

Name of an application protocol

FTP

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_5ee00fa0ad45400183e13c78171e3cca"> 
 <edit-config> 
  <target> 
 <running/> 
  </target> 
  <error-option>rollback-on-error</error-option> 
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> 
 <application-groups xmlns="urn:huawei:params:xml:ns:yang:huawei-application-group" xc:operation="merge"> 
    <vsys> 
     <name>name</name> 
     <application-group> 
      <name>Group1</name> 
      <description>Application_Group_1</description> 
      <application-object>BT</application-object> 
      <application-object>FTP</application-object> 
     </application-group> 
    </vsys> 
 </application-groups> 
  </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_5ee00fa0ad45400183e13c78171e3cca">  
  <ok/>  
</rpc-reply> 

Deleting a User-defined Application Group

This section provides a sample of deleting a user-defined application group.

Table 3-2040 Deleting a user-defined application group

Operation

XPATH

edit-config:remove

huawei-application-group:application-groups

Data Requirements
Table 3-2041 Deleting a user-defined application group

Item

Data

Description

Name of a user-defined application group

Group1

Delete the user-defined application group Group1.

Description of a user-defined application group

Application_Group_1

Name of an application protocol

BT

Name of an application protocol

FTP

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_5ee00fa0ad45400183e13c78171e3cca"> 
 <edit-config> 
  <target> 
 <running/> 
  </target> 
  <error-option>rollback-on-error</error-option> 
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> 
 <application-groups xmlns="urn:huawei:params:xml:ns:yang:huawei-application-group" xc:operation="remove"> 
    <vsys> 
     <name>name</name> 
     <application-group> 
      <name>Group1</name> 
      <description>Application_Group_1</description> 
      <application-object>BT</application-object> 
      <application-object>FTP</application-object> 
     </application-group> 
    </vsys> 
 </application-groups> 
  </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_5ee00fa0ad45400183e13c78171e3cca">  
  <ok/>  
</rpc-reply> 
Translation
Download
Updated: 2019-03-06

Document ID: EDOC1100022096

Views: 9642

Downloads: 69

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next