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).
SA Flow Table Backup

SA Flow Table Backup

Data Model

The data model file defined for SA flow table backup is named huawei-sa-forward.yang.

Table 3-2025 Data model for SA flow table backup

Node

Description

huawei-sa-forward:sa-forward-cfg

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

huawei-sa-forward:sa-forward-cfg/enable

Indicates whether to enable the SA flow table backup function. The enumerated values are true (yes) and false (no).

huawei-sa-forward:sa-forward-cfg/local/local-address

Indicates the local IP address used for SA flow table backup. The value is in dotted decimal notation.

huawei-sa-forward:sa-forward-cfg/local/local-port

Indicates the local port number used for SA flow table backup. The value is an integer ranging from 10240 to 65535.

huawei-sa-forward:sa-forward-cfg/peer/peer-address

Indicates the peer IP address used for SA flow table backup. The value is in dotted decimal notation.

huawei-sa-forward:sa-forward-cfg/peer/peer-port

Indicates the peer port number used for SA flow table backup. The value is an integer ranging from 10240 to 65535.

Enabling the SA Flow Table Backup Function

This section describes examples of the packets used to enable the SA flow table backup function.

Table 3-2026 Operation of enabling the SA flow table backup function

Operation

XPATH

edit-config:merge

huawei-sa-forward:sa-forward-cfg

Data Requirements
Table 3-2027 Parameters for enabling the SA flow table backup function

Item

Data

Description

Whether to enable SA flow table backup

true

Enable the SA flow table backup function globally. Set the local IP address to 2.2.2.2, local port number to 22000, peer IP address to 2.2.3.1, and peer port number to 25000.

Local IP address

2.2.2.2

Local port number

22000

Peer IP address

2.2.3.1

Peer port number

25000

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"> 
   <sa-forward-cfg xmlns="urn:huawei:params:xml:ns:yang:huawei-sa-forward" xc:operation="merge"> 
    <enable>true</enable> 
    <local> 
     <local-address>2.2.2.2</local-address> 
     <local-port>22000</local-port> 
    </local> 
    <peer> 
     <peer-address>2.2.3.1</peer-address> 
     <peer-port>25000</peer-port> 
    </peer> 
   </sa-forward-cfg> 
  </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>

Disabling the SA Flow Table Backup Function

This section describes examples of the packets used to disable the SA flow table backup function.

Table 3-2028 Operation of disabling the SA flow table backup function

Operation

XPATH

edit-config:remove

huawei-sa-forward:sa-forward-cfg

Data Requirements
Table 3-2029 Parameters for disabling the SA flow table backup function

Item

Data

Description

Whether to enable SA flow table backup

true

Disable the SA flow table backup function, and delete the local IP address, local port number, peer IP address, and peer port number.

Local IP address

2.2.2.2

Local port number

22000

Peer IP address

2.2.3.1

Peer port number

25000

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"> 
   <sa-forward-cfg xmlns="urn:huawei:params:xml:ns:yang:huawei-sa-forward" xc:operation="remove" > 
    <enable>true</enable> 
    <local> 
     <local-address>2.2.2.2</local-address> 
     <local-port>22000</local-port> 
    </local> 
    <peer> 
     <peer-address>2.2.3.1</peer-address> 
     <peer-port>25000</peer-port> 
    </peer> 
   </sa-forward-cfg> 
  </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: 8161

Downloads: 69

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