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).
QoS Profile

QoS Profile

Data Model

The data model file matching the QoS profile is huawei-qos-profile.yang.

Table 3-1728 QoS profile data model

Object

Description

huawei-qos-profile:qos-profiles

Indicates that the operation request (creating, deleting, and modifying) object is a QoS profile. It is only used to contain sub-objects, but does not have any data meaning.

huawei-qos-profile:qos-profiles/profile/name

Specifies the name of a QoS profile. The value is a string of 1 to 31 case-sensitive characters without spaces.

huawei-qos-profile:qos-profiles/profile/qos-para/car-para/direction

Indicates the direction in which traffic is policed. The value is of the enumerated type:

  • inbound
  • outbound

huawei-qos-profile:qos-profiles/profile/qos-para/car-para/cir

Specifies the committed information rate (CIR). The value is an integer that ranges from 8 to 4294967295, in kbit/s.

huawei-qos-profile:qos-profiles/profile/qos-para/car-para/cbs

Specifies the committed burst size (CBS). The value is an integer that ranges from 1500 to 4294967295, in bytes. This parameter is optional. If the PIR is not set, the default CBS is 188 times the CIR. If the PIR is set, the default CBS is 125 times the CIR.

huawei-qos-profile:qos-profiles/profile/qos-para/car-para/pir

Specifies the peak information rate (PIR). The value is an integer that ranges from 8 to 4294967295, in kbit/s. This parameter is optional. The PIR value must be greater than or equal to the CIR value.

huawei-qos-profile:qos-profiles/profile/qos-para/car-para/pbs

Specifies the peak burst size (PBS). The value is an integer that ranges from 1500 to 4294967295, in bytes. This parameter is optional. If the PIR is not set, the default PBS is 313 times the CIR. If the PIR is set, the default PBS is 125 times the PIR.

QoS Profile Configuration

Creating a QoS Profile

This section provides a sample of creating a QoS profile.

Table 3-1729 Creating a QoS profile

Operation

XPATH

edit-config:merge

huawei-qos-profile:qos-profiles/profile/name

Data Requirements
Table 3-1730 Creating a QoS profile

Item

Data

Description

Name of a QoS profile

qos1

Create a QoS profile named qos1.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_08a6ff32d57a4684b7054a53b32042de"> 
 <edit-config> 
  <target> 
   <running/> 
  </target> 
  <error-option>rollback-on-error</error-option> 
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> 
   <qos-profiles xmlns="urn:huawei:params:xml:ns:yang:huawei-qos-profile">  
    <profile xc:operation="merge"> 
     <name>qos1</name> 
    </profile> 
   </qos-profiles> 
  </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_08a6ff32d57a4684b7054a53b32042de">  
  <ok/>  
</rpc-reply> 
Deleting a QoS Profile

This section provides a sample of deleting a QoS profile.

Table 3-1731 Deleting a QoS profile

Operation

XPATH

edit-config:remove

huawei-qos-profile:qos-profiles/profile/name

Data Requirements
Table 3-1732 Deleting a QoS profile

Item

Data

Description

Name of a QoS profile

qos1

Delete the QoS profile named qos1.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_08a6ff32d57a4684b7054a53b32042de"> 
 <edit-config> 
  <target> 
   <running/> 
  </target> 
  <error-option>rollback-on-error</error-option> 
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> 
   <qos-profiles xmlns="urn:huawei:params:xml:ns:yang:huawei-qos-profile">  
    <profile xc:operation="remove"> 
     <name>qos1</name> 
    </profile> 
   </qos-profiles> 
  </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_08a6ff32d57a4684b7054a53b32042de">  
  <ok/>  
</rpc-reply> 

Traffic Policing Configuration

Configuring Traffic Policing in a QoS Profile

This section provides a sample of configuring traffic policing in a QoS profile.

Table 3-1733 Configuring traffic policing in a QoS profile

Operation

XPATH

edit-config:merge

huawei-qos-profile:qos-profiles/profile/qos-para/car-para

Data Requirements
Table 3-1734 Configuring traffic policing in a QoS profile

Item

Data

Description

Name of a QoS profile

qos1

In the QoS profile qos1, configure inbound traffic policing, and set the CIR to 1000 kbit/s, CBS to 10240 bytes, PIR to 10000 kbit/s, and PBS to 10240 bytes.

Direction in which traffic is policed

inbound

Committed information rate (CIR)

1000

Committed burst size (CBS)

10240

Peak information rate (PIR)

10000

Peak burst size (PBS)

10240

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_08a6ff32d57a4684b7054a53b32042de"> 
 <edit-config> 
  <target> 
   <running/> 
  </target> 
  <error-option>rollback-on-error</error-option> 
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> 
   <qos-profiles xmlns="urn:huawei:params:xml:ns:yang:huawei-qos-profile">  
    <profile> 
     <name>qos1</name> 
     <qos-para> 
      <car-para xc:operation="merge"> 
       <direction>inbound</direction> 
       <cir>1000</cir> 
       <cbs>10240</cbs> 
       <pir>10000</pir> 
       <pbs>10240</pbs> 
      </car-para> 
     </qos-para> 
    </profile> 
   </qos-profiles> 
  </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_08a6ff32d57a4684b7054a53b32042de">  
  <ok/>  
</rpc-reply> 
Deleting the Traffic Policing Configuration in a QoS Profile

This section provides a sample of deleting the traffic policing configuration in a QoS profile.

Table 3-1735 Deleting the traffic policing configuration in a QoS profile

Operation

XPATH

edit-config:remove

huawei-qos-profile:qos-profiles/profile/qos-para/car-para/direction

Data Requirements
Table 3-1736 Deleting the traffic policing configuration in a QoS profile

Item

Data

Description

Name of a QoS profile

qos1

Delete the inbound traffic policing configuration in the QoS profile qos1.

Direction in which traffic is policed

inbound

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_08a6ff32d57a4684b7054a53b32042de"> 
 <edit-config> 
  <target> 
   <running/> 
  </target> 
  <error-option>rollback-on-error</error-option> 
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> 
   <qos-profiles xmlns="urn:huawei:params:xml:ns:yang:huawei-qos-profile">  
    <profile> 
     <name>qos1</name> 
     <qos-para> 
      <car-para xc:operation="remove"> 
       <direction>inbound</direction> 
      </car-para> 
     </qos-para> 
    </profile> 
   </qos-profiles> 
  </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_08a6ff32d57a4684b7054a53b32042de">  
  <ok/>  
</rpc-reply> 
Translation
Download
Updated: 2019-03-06

Document ID: EDOC1100022096

Views: 8402

Downloads: 69

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