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

VXLAN

NOTE:

Only the AR100, AR120, AR150, AR160, AR200, AR1200, series and AR2220E support VXLAN.

BD

This section describes the data model of the Bridge Domain (BD) and provides samples of creating, modifying, and deleting a BD.

Data Model

The data model file matching the BD definition is huawei-bd.yang.

Table 3-1068 BD

Object

Description

/huawei-bd/bridge-domains/bridge-domain

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

/huawei-bd/bridge-domains/bridge-domain/id

Indicates the BD ID. The value is an integer, where:

  • For AR100, AR120, AR150, AR160, and AR200, the value ranges from 1 to 64.
  • For AR1200, the value ranges from 1 to 128.
  • For AR2220E, the value ranges from 1 to 256.

/huawei-bd/bridge-domains/bridge-domain/members/vlan-id

Indicates that the BD is associated with the VLAN. The value is an integer that ranges from 1 to 4094.

/huawei-bd/bridge-domains/bridge-domain/members/interface-name

Indicates that the Layer 2 sub-interface is associated with BD.

/huawei-bd/bridge-domains/bridge-domain/members/port-vlan

Indicates that the traffic encapsulation type is the outer VLAN ID in VLAN Tag packets of the Dot1q. The value is an integer that ranges from 2 to 4094.

/huawei-bd/bridge-domains/bridge-domain/qos/qos-preclassify

Indicates the pre-extract of original packet inner information.

Creating a BD

This section provides a sample of creating a BD using the merge method. You can also create a BD using the create method.

Table 3-1069 Creating a BD

Operation

XPATH

edit-config:merge

/huawei-bd/bridge-domains/bridge-domain

Data Requirements
Table 3-1070 Creating the BD 10

Item

Data

Description

BD ID

10

Create a BD, and set the BD ID to 10. Associate the BD with VLAN 50, Layer 2 sub-interface Ethernet2/0/0 (of which the traffic encapsulation type is set to default), and Ethernet2/0/1 (of which the traffic encapsulation type is set to the outer VLAN ID in VLAN tag packets of the dot1Q, namely, 10), and enable the pre-extract of original packet inner information.

VLAN associated with the BD

50

Layer 2 sub-interface associated with the BD

Ethernet2/0/0; default

Traffic encapsulation type

Ethernet2/0/1; 10

Pre-extract of original packet inner information

true

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">
   <vlans xmlns="urn:huawei:params:xml:ns:yang:huawei-vlan">
    <vlan xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0" ns0:operation="merge">
     <id>50</id>
     <enabled>true</enabled>
    </vlan>
   </vlans>
   <interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces">
    <interface xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0" ns0:operation="merge">
     <name> Ethernet2/0/0</name>
     <type xmlns:x="urn:ietf:params:xml:ns:yang:iana-if-type">x:ethernetCsmacd</type>
    </interface>
   </interfaces>
   <interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces">
    <interface xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0" ns0:operation="merge">
     <name> Ethernet2/0/1</name>
     <type xmlns:x="urn:ietf:params:xml:ns:yang:iana-if-type">x:ethernetCsmacd</type>
    </interface>
   </interfaces>
   <bridge-domains xmlns="urn:huawei:params:xml:ns:yang:huawei-bd">
    <bridge-domain xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0" ns0:operation="merge">
     <id>10</id>
     <members>
      <vlan-id>50</vlan-id>
      <interface-name>Ethernet2/0/0</interface-name>
      <port-vlan>
       <vlan-id>10</vlan-id>
       <interface-name>Ethernet2/0/1</interface-name>
      </port-vlan>
     </members>
     <qos>
      <qos-preclassify>true</qos-preclassify>
     </qos>
    </bridge-domain>
   </bridge-domains>
  </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>
Modifying the Configuration of a BD

This section provides a sample of modifying the configuration of a BD.

Table 3-1071 Modifying the configuration of a BD

Operation

XPATH

edit-config:replace

/huawei-bd/bridge-domains/bridge-domain

Data Requirements
Table 3-1072 Modifying the configuration of BD 10

Item

Data

Description

BD ID

10

Modify the configuration of BD 10 as follows: Associate the BD with VLAN 50, Layer 2 sub-interfaces of Ethernet2/0/0 (of which the traffic encapsulation type is set to default), and Layer 2 sub-interfaces of Ethernet2/0/1 (of which the traffic encapsulation type is set to dot1Q), modify the outer VLAN ID in VLAN tag packets of the dot1Q to 20, and enable the pre-extract of original packet inner information.

VLAN associated with the BD

50

Layer 2 sub-interface associated with the BD

Ethernet2/0/0; default

Traffic encapsulation type

Ethernet2/0/1; 20

Pre-extract of original packet inner information

true

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">
   <vlans xmlns="urn:huawei:params:xml:ns:yang:huawei-vlan">
    <vlan xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0" ns0:operation="replace">
     <id>50</id>
     <enabled>true</enabled>
    </vlan>
   </vlans>
   <interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces">
    <interface xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0" ns0:operation="replace">
     <name> Ethernet2/0/0</name>
     <type xmlns:x="urn:ietf:params:xml:ns:yang:iana-if-type">x:ethernetCsmacd</type>
    </interface>
   </interfaces>
   <interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces">
    <interface xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0" ns0:operation="replace">
     <name> Ethernet2/0/1</name>
     <type xmlns:x="urn:ietf:params:xml:ns:yang:iana-if-type">x:ethernetCsmacd</type>
    </interface>
   </interfaces>
   <bridge-domains xmlns="urn:huawei:params:xml:ns:yang:huawei-bd">
    <bridge-domain xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0" ns0:operation="replace">
     <id>10</id>
     <members>
      <vlan-id>50</vlan-id>
      <interface-name>Ethernet2/0/0</interface-name>
      <port-vlan>
       <vlan-id>20</vlan-id>
       <interface-name>Ethernet2/0/1</interface-name>
      </port-vlan>
     </members>
     <qos>
      <qos-preclassify>true</qos-preclassify>
     </qos>
    </bridge-domain>
   </bridge-domains>
  </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 BD

This section provides a sample of deleting a BD.

Table 3-1073 Deleting a BD

Operation

XPATH

edit-config:remove

/huawei-bd/bridge-domains/bridge-domain

Data Requirements
Table 3-1074 Deleting BD 10

Item

Data

Description

BD ID

10

Delete BD 10 and the configuration of the BD.

VLAN associated with the BD

50

Layer 2 sub-interface associated with the BD

Ethernet2/0/0; default

Traffic encapsulation type

Ethernet2/0/1; 10

Pre-extract of original packet inner information

true

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">
   <vlans xmlns="urn:huawei:params:xml:ns:yang:huawei-vlan">
    <vlan xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0" ns0:operation="remove">
     <id>50</id>
     <enabled>true</enabled>
    </vlan>
   </vlans>
   <interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces">
    <interface xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0" ns0:operation="remove">
     <name> Ethernet2/0/0</name>
     <type xmlns:x="urn:ietf:params:xml:ns:yang:iana-if-type">x:ethernetCsmacd</type>
    </interface>
   </interfaces>
   <interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces">
    <interface xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0" ns0:operation="remove">
     <name> Ethernet2/0/1</name>
     <type xmlns:x="urn:ietf:params:xml:ns:yang:iana-if-type">x:ethernetCsmacd</type>
    </interface>
   </interfaces>
   <bridge-domains xmlns="urn:huawei:params:xml:ns:yang:huawei-bd">
    <bridge-domain xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0" ns0:operation="remove">
     <id>10</id>
     <members>
      <vlan-id>50</vlan-id>
      <interface-name>Ethernet2/0/0</interface-name>
      <port-vlan>
       <vlan-id>10</vlan-id>
       <interface-name>Ethernet2/0/1</interface-name>
      </port-vlan>
     </members>
     <qos>
      <qos-preclassify>true</qos-preclassify>
     </qos>
    </bridge-domain>
   </bridge-domains>
  </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>

VXLAN Tunnel

This section describes the data model of the VXLAN tunnel and provides samples of creating, modifying, and deleting a VXLAN tunnel.

Data Model

The data model file matching the VXLAN tunnel are huawei-vxlan.yang and huawei-ethernet-vpn.yang.

Table 3-1075 VXLAN tunnel

Object

Description

/huawei-vxlan/vxlan/nve

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

/huawei-vxlan/vxlan/nve/id

Indicates the NVE interface number. The value is 1, an integer.

/huawei-vxlan/vxlan/nve/local-address

Indicates the source VTEP IP address of a VXLAN tunnel. It is in dotted decimal notation.

/huawei-vxlan/vxlan/nve/vni-config/vni

Indicates the VNI ID.

/huawei-vxlan/vxlan/nve/vni-config/peer-address

Indicates the destination VTEP IP address of a VXLAN tunnel. It is in dotted decimal notation.

/huawei-vxlan/vxlan/nve/vni-config/vni-attachment/layer2/bdid

Indicates that the VNI is associated with BD.

/huawei-vxlan/vxlan/nve/vni-config/vni-attachment/layer3/vpn-instance

Indicates the VPN instance.

/huawei-vxlan/huawei-vxlan:vxlan/vxlan-state

Indicates the VXLAN tunnel state.

/huawei-l3vpn:vpn-instances/vpn-instance/huawei-ethernet-vpn:evpn-vxlan/redirect/redirect-ip

Indicates the IP address of the next hop to which traffic entering a dynamic VXLAN tunnel is redirected. The value is in dotted decimal notation.

Creating a VXLAN Tunnel

This section provides a sample of creating a VXLAN tunnel using the merge method. You can also create a VXLAN tunnel using the create method.

Table 3-1076 Creating a VXLAN tunnel

Operation

XPATH

edit-config:merge

/huawei-vxlan/vxlan/nve

Data Requirements
Table 3-1077 Creating a VXLAN tunnel

Item

Data

Description

NVE interface number

1

Create an NVE interface and set the interface number to 1. Configure a VXLAN tunnel on the NVE interface 1: set the source VTEP IP address to 10.10.10.10, and destination IP addresses of the VXLAN tunnel of VNI 10 to 10.1.1.1 and 10.1.1.3, and associate BD 5 with VNI 10, and the VPN instance vpna with VNI 20.

Source VTEP IP address of the VXLAN tunnel

10.10.10.10

VNI ID

10

Destination VTEP IP addresses of the VXLAN tunnel

10.1.1.1, 10.1.1.3

BD associated with VNI

5

VNI ID

20

VPN instance associated with the VNI

vpna

Request Example
NOTE:

Before binding a VNI to a VPN instance, deliver a VPN instance packet according to Configuring a VPN Instance.

<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"> 
 <vxlan xmlns="urn:huawei:params:xml:ns:yang:huawei-vxlan"> 
    <nve xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0" ns0:operation="merge"> 
     <id>1</id> 
  <local-address>10.10.10.10</local-address> 
  <vni-config> 
 <vni>10</vni> 
 <peer-address>10.1.1.1</peer-address> 
 <peer-address>10.1.1.3</peer-address> 
 <bdid>5</bdid> 
  </vni-config> 
  <vni-config> 
 <vni>20</vni> 
    <bgp/> 
 <vpn-instance>vpna</vpn-instance> 
  </vni-config> 
    </nve> 
 </vxlan> 
  </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>
Modifying the Configuration of a VXLAN Tunnel

This section provides a sample of modifying the configuration of a VXLAN tunnel.

Table 3-1078 Modifying the configuration of a VXLAN tunnel

Operation

XPATH

edit-config:replace

/huawei-vxlan/vxlan/nve

Data Requirements
Table 3-1079 Modifying the configuration of a VXLAN tunnel

Item

Data

Description

NVE interface number

1

Modify the configuration of the VXLAN tunnel on the NVE interface 1, of which the source VTEP IP address is 10.10.10.10, and destination IP addresses for VNI 10 are 10.1.1.1 and 10.1.1.3. Associate VNI 10 with BD 10 and VNI 20 with VPN instance vpna.

Source VTEP IP address of the VXLAN tunnel

10.10.10.10

VNI ID

10

Destination VTEP IP addresses of the VXLAN tunnel

10.1.1.1, 10.1.1.3

BD associated with VNI

10

VNI ID

20

VPN instance associated with the VNI

vpna

Request Example
NOTE:

Before binding a VNI to a VPN instance, deliver a VPN instance packet according to Configuring a VPN Instance.

<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">
   <vxlan xmlns="urn:huawei:params:xml:ns:yang:huawei-vxlan">
    <nve xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0" ns0:operation="replace">
     <id>1</id>
  <local-address>10.10.10.10</local-address>
  <vni-config>
   <vni>10</vni>
   <peer-address>10.1.1.1</peer-address>
   <peer-address>10.1.1.3</peer-address>
   <bdid>10</bdid>
  </vni-config>
  <vni-config>
   <vni>20</vni>
    <bgp/>
   <vpn-instance>vpna</vpn-instance>
  </vni-config>
    </nve>
   </vxlan>
  </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 VXLAN Tunnel

This section provides a sample of deleting a VXLAN tunnel.

Table 3-1080 Deleting a VXLAN tunnel

Operation

XPATH

edit-config:remove

/huawei-vxlan/vxlan/nve

Data Requirements
Table 3-1081 Deleting a VXLAN tunnel

Item

Data

Description

NVE interface number

1

Delete the NVE interface 1 and the VXLAN tunnel configured on the interface.

Source VTEP IP address of the VXLAN tunnel

10.10.10.10

VNI ID

10

Destination VTEP IP addresses of the VXLAN tunnel

10.1.1.1, 10.1.1.3

BD associated with VNI

5

VNI ID

20

VPN instance associated with the VNI

vpna

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">
   <vxlan xmlns="urn:huawei:params:xml:ns:yang:huawei-vxlan">
    <nve xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0" ns0:operation="remove">
     <id>1</id>
  <local-address>10.10.10.10</local-address>
  <vni-config>
   <vni>10</vni>
   <peer-address>10.1.1.1</peer-address>
   <peer-address>10.1.1.3</peer-address>
   <bdid>5</bdid>
  </vni-config>
  <vni-config>
   <vni>20</vni>
    <bgp/>
   <vpn-instance>vpna</vpn-instance>
  </vni-config>
    </nve>
   </vxlan>
  </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>
Checking the Status of a VXLAN Tunnel
Table 3-1082 Checking the status of a VXLAN tunnel

Operation

XPATH

edit-config:get

/huawei-vxlan/huawei-vxlan:vxlan/vxlan-state

Request Example
<rpc message-id="2" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> 
  <get> 
    <filter type="subtree"> 
      <hw-vxlan:vxlan xmlns:hw-vxlan="urn:huawei:params:xml:ns:yang:huawei-vxlan"> 
        <hw-vxlan:vxlan-state> 
          <hw-vxlan:vxlan-tunnels/> 
        </hw-vxlan:vxlan-state> 
      </hw-vxlan:vxlan> 
    </filter> 
  </get> 
</rpc>
Configuring the IP Address of the Next Hop to Which Traffic Entering a Dynamic VXLAN Tunnel Is Redirected

This section provides a sample of configuring the IP address of the next hop to which traffic entering a dynamic VXLAN tunnel is redirected.

Table 3-1083 Configuring the IP address of the next hop to which traffic entering a dynamic VXLAN tunnel is redirected

Operation

XPATH

edit-config:merge

/huawei-l3vpn:vpn-instances/vpn-instance/huawei-ethernet-vpn:evpn-vxlan/redirect/redirect-ip

Data Requirements
Table 3-1084 Configuring the IP address of the next hop to which traffic entering a dynamic VXLAN tunnel is redirected

Item

Data

Description

IP address of the next hop to which traffic is redirected

172.21.128.138

Configure 172.21.128.138 as the IP address of the next hop to which traffic entering a dynamic VXLAN tunnel is redirected.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFI11"> 
 <edit-config> 
  <target> 
   <running/> 
  </target> 
  <error-option>rollback-on-error</error-option> 
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> 
   <vpn-instances xmlns="urn:huawei:params:xml:ns:yang:huawei-l3vpn">
    <vpn-instance>
     <vpn-instance-name>test</vpn-instance-name>
     <ipv4-family xmlns="urn:huawei:params:xml:ns:yang:huawei-bgp-l3vpn">
      <route-distinguisher>202:1</route-distinguisher>
      <vpnTargets>
       <vpnTarget>
        <vrfRTValue>111:1</vrfRTValue>
        <vrfRTType>import_extcommunity</vrfRTType>
       </vpnTarget>
      </vpnTargets>
     </ipv4-family>
    </vpn-instance>
   </vpn-instances>
   <vpn-instances xmlns="urn:huawei:params:xml:ns:yang:huawei-l3vpn" xc:operation="merge">
    <vpn-instance>
     <vpn-instance-name>test</vpn-instance-name>
     <evpn-vxlan xmlns="urn:huawei:params:xml:ns:yang:huawei-ethernet-vpn">
      <redirect xc:operation="merge">
       <redirect-ip >172.21.128.138</redirect-ip>
      </redirect>
     </evpn-vxlan>
    </vpn-instance>
   </vpn-instances>
  </config>
 </edit-config>
</rpc>
Response Example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFI11">
  <ok/>
</rpc-reply>
Deleting the IP Address of the Next Hop to Which Traffic Entering a Dynamic VXLAN Tunnel Is Redirected

This section provides a sample of deleting the IP address of the next hop to which traffic entering a dynamic VXLAN tunnel is redirected.

Table 3-1085 Deleting the IP address of the next hop to which traffic entering a dynamic VXLAN tunnel is redirected

Operation

XPATH

edit-config:remove

/huawei-l3vpn:vpn-instances/vpn-instance/huawei-ethernet-vpn:evpn-vxlan/redirect/redirect-ip

Data Requirements
Table 3-1086 Deleting the IP address of the next hop to which traffic entering a dynamic VXLAN tunnel is redirected

Item

Data

Description

IP address of the next hop to which traffic is redirected

172.21.128.138

Delete the IP address 172.21.128.138 of the next hop to which traffic entering a dynamic VXLAN tunnel is redirected.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFI11"> 
 <edit-config> 
  <target> 
   <running/> 
  </target> 
  <error-option>rollback-on-error</error-option> 
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> 
   <vpn-instances xmlns="urn:huawei:params:xml:ns:yang:huawei-l3vpn">
    <vpn-instance>
     <vpn-instance-name>test</vpn-instance-name>
     <ipv4-family xmlns="urn:huawei:params:xml:ns:yang:huawei-bgp-l3vpn">
      <route-distinguisher>202:1</route-distinguisher>
      <vpnTargets>
       <vpnTarget>
        <vrfRTValue>111:1</vrfRTValue>
        <vrfRTType>import_extcommunity</vrfRTType>
       </vpnTarget>
      </vpnTargets>
     </ipv4-family>
    </vpn-instance>
   </vpn-instances>
   <vpn-instances xmlns="urn:huawei:params:xml:ns:yang:huawei-l3vpn" xc:operation="merge">
    <vpn-instance>
     <vpn-instance-name>test</vpn-instance-name>
     <evpn-vxlan xmlns="urn:huawei:params:xml:ns:yang:huawei-ethernet-vpn">
      <redirect xc:operation="remove">
       <redirect-ip >172.21.128.138</redirect-ip>
      </redirect>
     </evpn-vxlan>
    </vpn-instance>
   </vpn-instances>
  </config>
 </edit-config>
</rpc>
Response Example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFI11">
  <ok/>
</rpc-reply>
Translation
Download
Updated: 2019-03-06

Document ID: EDOC1100022096

Views: 8576

Downloads: 69

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