This section provides a sample of configuring VXLAN EVPN using the config method.
Operation |
XPATH |
|---|---|
config |
/huawei-ethernet-vpn:vpn-instances/vpn-instance/vpn-instance-name /huawei-ethernet-vpn:vpn-instances/vpn-instance/evpn-type /huawei-ethernet-vpn:vpn-instances/vpn-instance/route-distinguisher /huawei-ethernet-vpn:vpn-instances/vpn-instance/evpntargets/evpntarget/evrf-rtvalue /huawei-ethernet-vpn:vpn-instances/vpn-instance/evpntargets/evpntarget/evrf-rttype /ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/huawei-bgp:bgp-routing/bgp-router/huawei-bgp-l3vpn:bgp-af-ipv4-vpn-instances/bgp-af-ipv4-vpn-instance/huawei-ethernet-vpn:advertise-to-ethernet-vpn /huawei-bd:bridge-domains/bridge-domain/huawei-ethernet-vpn:evpn-vpn-instance-name /huawei-bd:bridge-domains/bridge-domain/huawei-ethernet-vpn:arp-broadcast-suppress /huawei-bd:bridge-domains/bridge-domain/huawei-ethernet-vpn:mismatch-discard /huawei-l3vpn:vpn-instances/vpn-instance/huawei-bgp-l3vpn:ipv4-family/huawei-ethernet-vpn:evpntargets/evpntarget/evrf-rtvalue /huawei-l3vpn:vpn-instances/vpn-instance/huawei-bgp-l3vpn:ipv4-family/huawei-ethernet-vpn:evpntargets/evpntarget/evrf-rttype |
Data Requirements
Item |
Data |
Description |
|---|---|---|
Name of an EVPN instance |
mm |
Set the name of the EVPN instance to mm. |
Type of an EVPN instance |
bdevpn |
Set the type of the EVPN instance to bd-mode. |
RD of an EVPN instance |
10:10 |
Set the RD of the EVPN instance to 10:10. |
Value of the VPN target of an EVPN instance |
10:10 |
Set the value of the VPN target of the EVPN instance to 10:10. |
Function of enabling a VPN instance to advertise IP routes to an EVPN instance |
Space |
Enable a VPN instance to advertise IP routes to the EVPN instance. |
Name of an EVPN instance bound to a BD |
mm |
Set the name of the EVPN instance bound to a BD to mm. |
ARP broadcast suppression |
true |
Enable ARP broadcast suppression. |
Action of discarding ARP packets matching no ARP entry when ARP broadcast suppression is enabled |
true |
Enable the action of discarding ARP packets matching no ARP entry when ARP broadcast suppression is enabled. |
Value of a VPN target for routes to be installed into the routing table of an EVPN instance |
2:2 |
Set the value of a VPN target for routes to be installed into the routing table of an EVPN instance to 2:2. |
Type of a VPN target for routes to be installed into the routing table of an EVPN instance |
both |
Set the type of a VPN target for routes to be installed into the routing table of an EVPN instance to both. |
Request Example
<?xml version='1.0' encoding='UTF-8'?>
<rpc message-id="5" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<edit-config>
<target>
<running/>
</target>
<config>
<hw-ethvpn:vpn-instances xmlns:hw-ethvpn="urn:huawei:params:xml:ns:yang:huawei-ethernet-vpn">
<hw-ethvpn:vpn-instance>
<hw-ethvpn:vpn-instance-name>mm</hw-ethvpn:vpn-instance-name>
<hw-ethvpn:evpn-type>bdevpn</hw-ethvpn:evpn-type>
<hw-ethvpn:route-distinguisher>10:10</hw-ethvpn:route-distinguisher>
<hw-ethvpn:evpntargets>
<hw-ethvpn:evpntarget>
<hw-ethvpn:evrf-rtvalue>10:10</hw-ethvpn:evrf-rtvalue>
<hw-ethvpn:evrf-rttype>both</hw-ethvpn:evrf-rttype>
</hw-ethvpn:evpntarget>
</hw-ethvpn:evpntargets>
</hw-ethvpn:vpn-instance>
</hw-ethvpn:vpn-instances>
<hw-l3vpn:vpn-instances xmlns:hw-l3vpn="urn:huawei:params:xml:ns:yang:huawei-l3vpn">
<hw-l3vpn:vpn-instance>
<hw-l3vpn:vpn-instance-name>kk</hw-l3vpn:vpn-instance-name>
<hw-bgp-vpn:ipv4-family xmlns:hw-bgp-vpn="urn:huawei:params:xml:ns:yang:huawei-bgp-l3vpn">
<hw-bgp-vpn:route-distinguisher>9:9</hw-bgp-vpn:route-distinguisher>
<hw-ethvpn:evpntargets xmlns:hw-ethvpn="urn:huawei:params:xml:ns:yang:huawei-ethernet-vpn">
<hw-ethvpn:evpntarget>
<hw-ethvpn:evrf-rtvalue>2:2</hw-ethvpn:evrf-rtvalue>
<hw-ethvpn:evrf-rttype>both</hw-ethvpn:evrf-rttype>
</hw-ethvpn:evpntarget>
</hw-ethvpn:evpntargets>
</hw-bgp-vpn:ipv4-family>
</hw-l3vpn:vpn-instance>
</hw-l3vpn:vpn-instances>
<rt:routing xmlns:rt="urn:ietf:params:xml:ns:yang:ietf-routing">
<rt:routing-instance>
<rt:name>bgp</rt:name>
<rt:routing-protocols>
<rt:routing-protocol>
<rt:type xmlns:huawei-bgp="urn:huawei:params:xml:ns:yang:huawei-bgp">huawei-bgp:bgp-routing-protocol</rt:type>
<rt:name>bgp</rt:name>
<hw-bgp:bgp-routing xmlns:hw-bgp="urn:huawei:params:xml:ns:yang:huawei-bgp">
<hw-bgp:bgp-router>
<hw-bgp:local-as-number>100</hw-bgp:local-as-number>
<hw-bgp-vpn:bgp-af-ipv4-vpn-instances xmlns:hw-bgp-vpn="urn:huawei:params:xml:ns:yang:huawei-bgp-l3vpn">
<hw-bgp-vpn:bgp-af-ipv4-vpn-instance>
<hw-bgp-vpn:vpn-instance-name>kk</hw-bgp-vpn:vpn-instance-name>
<hw-ethvpn:advertise-to-ethernet-vpn xmlns:hw-ethvpn="urn:huawei:params:xml:ns:yang:huawei-ethernet-vpn"> </hw-ethvpn:advertise-to-ethernet-vpn>
</hw-bgp-vpn:bgp-af-ipv4-vpn-instance>
</hw-bgp-vpn:bgp-af-ipv4-vpn-instances>
</hw-bgp:bgp-router>
</hw-bgp:bgp-routing>
</rt:routing-protocol>
</rt:routing-protocols>
</rt:routing-instance>
</rt:routing>
<bd:bridge-domains xmlns:bd="urn:huawei:params:xml:ns:yang:huawei-bd">
<bd:bridge-domain>
<bd:id>10</bd:id>
<hw-ethvpn:evpn-vpn-instance-name xmlns:hw-ethvpn="urn:huawei:params:xml:ns:yang:huawei-ethernet-vpn">mm</hw-ethvpn:evpn-vpn-instance-name>
<hw-ethvpn:arp-broadcast-suppress xmlns:hw-ethvpn="urn:huawei:params:xml:ns:yang:huawei-ethernet-vpn">true</hw-ethvpn:arp-broadcast-suppress>
<hw-ethvpn:mismatch-discard xmlns:hw-ethvpn="urn:huawei:params:xml:ns:yang:huawei-ethernet-vpn">true</hw-ethvpn:mismatch-discard>
</bd:bridge-domain>
</bd:bridge-domains>
<hw-vxlan:vxlan xmlns:hw-vxlan="urn:huawei:params:xml:ns:yang:huawei-vxlan">
<hw-vxlan:nve>
<hw-vxlan:id>1</hw-vxlan:id>
<hw-vxlan:vni-config>
<hw-vxlan:vni>10</hw-vxlan:vni>
<hw-vxlan:bgp> </hw-vxlan:bgp>
<hw-vxlan:bdid>10</hw-vxlan:bdid>
</hw-vxlan:vni-config>
</hw-vxlan:nve>
</hw-vxlan:vxlan>
</config>
</edit-config>
</rpc>
Response Example
Sample of successful response
<?xml version='1.0' encoding='UTF-8'?> <rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="5"> <ok/> </rpc-reply>
Sample of failed response
<?xml version='1.0' encoding='UTF-8'?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="5">
<rpc-error>
<error-app-tag>-1</error-app-tag>
<error-message>The BGP protocol supports single instance only.</error-message>
<error-info>Error on node /ietf-routing:routing/routing-instance[name="bgp"]/routing-protocols/routing-protocol[type="huawei-bgp:bgp-routing-protocol",name="bgp"]/huawei-bgp:bgp-routing/bgp-router/local-as-number</error-info>
</rpc-error>
</rpc-reply>