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).
TCP FPM

TCP FPM

Data Model

The configuration model files matching TCP FPM are huawei-tcpfpm.yang and huawei-system-performance.yang.

Table 3-1687 Data model of TCP FPM

Object

Description

tcpfpm

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

huawei-tcpfpm:tcpfpm/tcpfpm-apply:interface/name

Indicates the name of an interface. The value depends on the interface type and slot ID.

huawei-system-performance:pm-config/collection-item-policy/policies/data-collection-item/item-collection-interval

Indicates the interval for reporting TCP FPM statistics to the controller. The value is an integer in the range from 1 to 1440, in minutes. The default value is 5.

Enabling TCP FPM

This section provides a sample of enabling TCP FPM.

Table 3-1688 Enabling TCP FPM

Operation

XPATH

edit-config: default

huawei-tcpfpm:tcpfpm/tcpfpm-apply/interface:name

Data Requirements
Table 3-1689 Enabling TCP FPM

Item

Data

Description

Interface name

GigabitEthernet0/0/0

Enable TCP FPM on GigabitEthernet0/0/0.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_4ff19d140b4544b5ac1bad400a480bdd"> 
 <edit-config> 
  <target> 
   <running/> 
  </target> 
  <error-option>rollback-on-error</error-option> 
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> 
   <tcpfpm xmlns="urn:huawei:params:xml:ns:yang:huawei-tcpfpm"> 
    <tcpfpm-apply> 
     <interface> 
      <name>GigabitEthernet0/0/0</name> 
     </interface> 
    </tcpfpm-apply> 
   </tcpfpm> 
  </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_4ff19d140b4544b5ac1bad400a480bdd">  
 <ok/>  
</rpc-reply> 

Disabling TCP FPM

This section provides a sample of disabling TCP FPM.

Table 3-1690 Disabling TCP FPM

Operation

XPATH

edit-config:remove

huawei-tcpfpm:tcpfpm/tcpfpm-apply/interface:name

Data Requirements
Table 3-1691 Disabling TCP FPM

Item

Data

Description

Interface name

GigabitEthernet0/0/0

Disable TCP FPM on GigabitEthernet0/0/0.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_4ff19d140b4544b5ac1bad400a480bdd"> 
 <edit-config> 
  <target> 
   <running/> 
  </target> 
  <error-option>rollback-on-error</error-option> 
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> 
   <tcpfpm xmlns="urn:huawei:params:xml:ns:yang:huawei-tcpfpm" xc:operation="remove"> 
    <tcpfpm-apply> 
     <interface> 
      <name>GigabitEthernet0/0/0</name> 
     </interface> 
    </tcpfpm-apply> 
   </tcpfpm> 
  </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_4ff19d140b4544b5ac1bad400a480bdd">  
 <ok/>  
</rpc-reply> 

Configuring the Interval for Reporting TCP FPM Statistics to the Controller

This section provides a sample of configuring the interval for reporting TCP FPM statistics to the controller.

Table 3-1692 Configuring the interval for reporting TCP FPM statistics to the controller

Operation

XPATH

edit-config:merge

huawei-system-performance:pm-config/collection-item-policy/policies/data-collection-item/item-collection-interval

Data Requirements
Table 3-1693 Configuring the interval for reporting TCP FPM statistics to the controller

Item

Data

Description

Internal for reporting TCP FPM statistics to the controller

10

Set the interval for reporting TCP FPM statistics to the controller to 10 minutes.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_4ff19d140b4544b5ac1bad400a480bdd"> 
 <edit-config> 
  <target> 
   <running/> 
  </target> 
  <error-option>rollback-on-error</error-option> 
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> 
   <pm-config xmlns="urn:huawei:params:xml:ns:yang:huawei-system-performance"> 
    <collection-item-policy xc:operation="merge"> 
     <policies> 
      <name>CloudManagerCollectPolicy</name> 
      <data-collection-item> 
       <type>tcpfpm-data</type> 
       <collection-enable>true</collection-enable> 
       <item-collection-interval>10</item-collection-interval> 
       <priority>16</priority> 
      </data-collection-item> 
     </policies> 
    </collection-item-policy> 
   </pm-config> 
  </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_4ff19d140b4544b5ac1bad400a480bdd">  
 <ok/>  
</rpc-reply> 

Modifying the Interval for Reporting TCP FPM Statistics to the Controller

This section provides a sample of modifying the interval for reporting TCP FPM statistics to the controller.

Table 3-1694 Modifying the interval for reporting TCP FPM statistics to the controller

Operation

XPATH

edit-config:replace

huawei-system-performance:pm-config/collection-item-policy/policies/data-collection-item/item-collection-interval

Data Requirements
Table 3-1695 Modifying the interval for reporting TCP FPM statistics to the controller

Item

Data

Description

Internal for reporting TCP FPM statistics to the controller

20

Modify the interval for reporting TCP FPM statistics to the controller to 20 minutes.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_4ff19d140b4544b5ac1bad400a480bdd"> 
 <edit-config> 
  <target> 
   <running/> 
  </target> 
  <error-option>rollback-on-error</error-option> 
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> 
   <pm-config xmlns="urn:huawei:params:xml:ns:yang:huawei-system-performance"> 
    <collection-item-policy xc:operation="replace"> 
     <policies> 
      <name>CloudManagerCollectPolicy</name> 
      <data-collection-item> 
       <type>tcpfpm-data</type> 
       <collection-enable>true</collection-enable> 
       <item-collection-interval>20</item-collection-interval> 
       <priority>16</priority> 
      </data-collection-item>  
     </policies> 
    </collection-item-policy> 
   </pm-config> 
  </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_4ff19d140b4544b5ac1bad400a480bdd">  
  <ok/>  
</rpc-reply> 

Restoring the Default Interval for Reporting TCP FPM Statistics to the Controller

This section provides a sample of restoring the default interval for reporting TCP FPM statistics to the controller.

Table 3-1696 Restoring the default interval for reporting TCP FPM statistics to the controller

Operation

XPATH

edit-config:remove

huawei-system-performance:pm-config/collection-item-policy/policies/data-collection-item/item-collection-interval

Data Requirements
Table 3-1697 Restoring the default interval for reporting TCP FPM statistics to the controller

Item

Data

Description

Internal for reporting TCP FPM statistics to the controller

20

Restore the default interval for reporting TCP FPM statistics to the controller.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_4ff19d140b4544b5ac1bad400a480bdd"> 
 <edit-config> 
  <target> 
   <running/> 
  </target> 
  <error-option>rollback-on-error</error-option> 
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> 
   <pm-config xmlns="urn:huawei:params:xml:ns:yang:huawei-system-performance"> 
    <collection-item-policy xc:operation="remove"> 
     <policies> 
      <name>CloudManagerCollectPolicy</name> 
      <data-collection-item> 
       <type>tcpfpm-data</type> 
       <collection-enable>true</collection-enable> 
       <item-collection-interval>20</item-collection-interval> 
       <priority>16</priority> 
      </data-collection-item>  
     </policies> 
    </collection-item-policy> 
   </pm-config> 
  </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_4ff19d140b4544b5ac1bad400a480bdd">  
  <ok/>  
</rpc-reply> 
Translation
Download
Updated: 2019-03-06

Document ID: EDOC1100022096

Views: 8534

Downloads: 69

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