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).
ARP

ARP

Proxy ARP

This section describes the data model of proxy ARP, and samples of XML packets used to configure, modify, and delete proxy ARP.

Data Model

The data model matching proxy ARP is huawei-arp-proxy.yang. The data model is defined by IETF.

Table 3-386 Proxy ARP data model

Object

Description

/ietf-interfaces:interfaces/interface/ietf-ip:ipv4/address/huawei-arp-proxy:arp-proxy-enable

Configure proxy ARP.

Configuring Proxy ARP
Table 3-387 Configuring proxy ARP

Operation

XPATH

edit-config:merge

/ietf-interfaces:interfaces/interface/ietf-ip:ipv4/address/huawei-arp-proxy:arp-proxy-enable

Data requirements
Table 3-388 Configuring proxy ARP

Item

Data

Description

Interface

GigabitEthernet0/0/4

Set the IP address of GigabitEthernet0/0/4 to 198.168.1.1 and mask length to 24, and enable proxy ARP on GigabitEthernet0/0/4.

NOTE:

When configuring the proxy ARP function on an interface, you must configure the IP address and mask length of the interface. Otherwise, the proxy ARP configuration does not take effect.

IP address

198.168.1.1

Mask length

24

Proxy ARP

true

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_446de75a3e3244338e34ab6a215fa64a">
 <edit-config> 
  <target>  
   <running/>  
  </target>  
  <error-option>rollback-on-error</error-option>  
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> 
   <interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces"> 
    <interface xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0"> 
     <name>GigabitEthernet0/0/4</name> 
     <type xmlns:iana="urn:ietf:params:xml:ns:yang:iana-if-type">iana:ethernetCsmacd</type> 
     <ipv4 xmlns="urn:ietf:params:xml:ns:yang:ietf-ip"> 
      <address> 
       <ip>198.168.1.1</ip> 
       <prefix-length>24</prefix-length> 
       <arp-proxy-enable xmlns="urn:huawei:params:xml:ns:yang:huawei-arp-proxy" xc:operation="merge">true</arp-proxy-enable> 
      </address>  
     </ipv4> 
    </interface> 
   </interfaces> 
  </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_446de75a3e3244338e34ab6a215fa64a">  
 <ok/>  
</rpc-reply>
Modifying Proxy ARP
Table 3-389 Modifying proxy ARP

Operation

XPATH

edit-config:replace

/ietf-interfaces:interfaces/interface/ietf-ip:ipv4/address/huawei-arp-proxy:arp-proxy-enable

Data requirements
Table 3-390 Modifying proxy ARP

Item

Data

Description

Interface

GigabitEthernet0/0/4

Disable the proxy ARP function on GigabitEthernet0/0/4.

Proxy ARP

false

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_446de75a3e3244338e34ab6a215fa64a">
 <edit-config> 
  <target>  
   <running/>  
  </target>  
  <error-option>rollback-on-error</error-option>  
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> 
   <interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces"> 
    <interface xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0"> 
     <name>GigabitEthernet0/0/4</name> 
     <type xmlns:iana="urn:ietf:params:xml:ns:yang:iana-if-type">iana:ethernetCsmacd</type> 
     <ipv4 xmlns="urn:ietf:params:xml:ns:yang:ietf-ip"> 
      <address> 
       <ip>198.168.1.1</ip> 
       <prefix-length>24</prefix-length> 
       <arp-proxy-enable xmlns="urn:huawei:params:xml:ns:yang:huawei-arp-proxy" xc:operation="replace">false</arp-proxy-enable> 
      </address>  
     </ipv4> 
    </interface> 
   </interfaces> 
  </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_446de75a3e3244338e34ab6a215fa64a">  
 <ok/>  
</rpc-reply> 
Deleting proxy ARP
Table 3-391 Deleting proxy ARP

Operation

XPATH

edit-config:remove

/ietf-interfaces:interfaces/interface/ietf-ip:ipv4/address/huawei-arp-proxy:arp-proxy-enable

Data requirements
Table 3-392 Deleting proxy ARP

Item

Data

Description

Interface

GigabitEthernet0/0/4

Delete the proxy ARP function from GigabitEthernet0/0/4.

Proxy ARP

true

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_446de75a3e3244338e34ab6a215fa64a">
 <edit-config> 
  <target>  
   <running/>  
  </target>  
  <error-option>rollback-on-error</error-option>  
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> 
   <interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces"> 
    <interface xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0"> 
     <name>GigabitEthernet0/0/4</name> 
     <type xmlns:iana="urn:ietf:params:xml:ns:yang:iana-if-type">iana:ethernetCsmacd</type> 
     <ipv4 xmlns="urn:ietf:params:xml:ns:yang:ietf-ip"> 
      <address> 
       <ip>198.168.1.1</ip> 
       <prefix-length>24</prefix-length> 
       <arp-proxy-enable xmlns="urn:huawei:params:xml:ns:yang:huawei-arp-proxy" xc:operation="remove">true</arp-proxy-enable> 
      </address>  
     </ipv4> 
    </interface> 
   </interfaces> 
  </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_446de75a3e3244338e34ab6a215fa64a">  
 <ok/>  
</rpc-reply>
Translation
Download
Updated: 2019-03-06

Document ID: EDOC1100022096

Views: 8481

Downloads: 69

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