EVPN Management
This section describes the configuration model of EVPN management and provides examples of XML packets.
Data Model
The configuration model files matching EVPN are huawei-ethernet-vpn.yang, huawei-bgp-l3vpn.yang, huawei-route-policy.yang and huawei-bgp.yang.
Object |
Description |
Value |
Remarks |
---|---|---|---|
/huawei-ethernet-vpn:vpn-instances/vpn-instance/vpn-instance-name |
Indicates the name of a created EVPN instance. |
The value is a string of 1 to 31 case-sensitive characters without spaces. |
N/A |
/huawei-ethernet-vpn:vpn-instances/vpn-instance/evpn-type |
Indicates the type of a created EVPN instance. |
The value is of the enumerated type:
|
N/A |
/huawei-ethernet-vpn:vpn-instances/vpn-instance/route-distinguisher |
Specifies the RD of an EVPN instance. |
The value is a string of 3 to 21 case-sensitive characters without spaces. |
N/A |
/huawei-ethernet-vpn:vpn-instances/vpn-instance/evpntargets/evpntarget/evrf-rtvalue |
Specifies the value of the VPN target extended community attribute for an EVPN instance. |
The value is a string of 3 to 21 case-sensitive characters without spaces. |
N/A |
/huawei-ethernet-vpn:vpn-instances/vpn-instance/evpntargets/evpntarget/evrf-rttype |
Specifies the type of the VPN target extended community attribute for an EVPN instance. |
The value is of the enumerated type:
|
N/A |
/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 |
Enables a VPN instance to advertise IP routes to an EVPN instance. |
N/A |
N/A |
/huawei-bd:bridge-domains/bridge-domain/huawei-ethernet-vpn:evpn-vpn-instance-name |
Specifies the name of an EVPN instance bound to a BD. |
The value is a string of 1 to 31 case-sensitive characters without spaces. |
For details, see /hw-ethvpn:vpn-instances/hw-ethvpn:vpn-instance/hw-ethvpn:vpn-instance-name. |
/huawei-bd:bridge-domains/bridge-domain/huawei-ethernet-vpn:arp-broadcast-suppress |
Enables ARP broadcast suppression. |
The value is of the Boolean type:
|
N/A |
/huawei-bd:bridge-domains/bridge-domain/huawei-ethernet-vpn:mismatch-discard |
Enables the action of discarding ARP packets matching no ARP entry when ARP broadcast suppression is enabled. |
The value is of the Boolean type:
|
This object can be configured only when the value of /huawei-bd:bridge-domains/bridge-domain/huawei-ethernet-vpn:arp-broadcast-suppress is true. |
/huawei-bd:bridge-domains/bridge-domain/huawei-ethernet-vpn: nd-multicast-suppress |
Enables the NS multicast suppression function. |
The value is of the Boolean type:
|
N/A |
/huawei-bd:bridge-domains/bridge-domain/huawei-ethernet-vpn: nd-mismatch-discard |
Configures the device to discard unmatched NS multicast packets when the NS multicast suppression function is enabled. |
The value is of the Boolean type:
|
This object can be configured only when the value of the /huawei-bd:bridge-domains/bridge-domain/huawei-ethernet-vpn: nd-multicast-suppress object is true. |
/huawei-l3vpn:vpn-instances/vpn-instance/huawei-bgp-l3vpn:ipv4-family/huawei-ethernet-vpn:evpntargets/evpntarget/evrf-rtvalue |
Specifies the value of a VPN target for EVPN routes to be imported into a VPN instance. |
The value is a string of 3 to 21 case-sensitive characters without spaces. |
N/A |
/huawei-l3vpn:vpn-instances/vpn-instance/huawei-bgp-l3vpn:ipv4-family/huawei-ethernet-vpn:evpntargets/evpntarget/evrf-rttype |
Specifies the type of a VPN target for EVPN routes to be imported into a VPN instance. |
The value is of the enumerated type:
|
N/A |
/ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/huawei-bgp:bgp-routing/bgp-neighbors/bgp-neighbor/af-specific-config/l2vpn/evpn/active |
Enables the local device to exchange routing information with specified peers. |
The value is of the Boolean type:
|
N/A |
/ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/huawei-bgp:bgp-routing/bgp-neighbors/bgp-neighbor/af-specific-config/l2vpn/evpn/route-reflector-client |
Enables the local device as a route reflector and its peers as the clients of the route reflector. |
The value is of the Boolean type:
|
This object can be configured only when the value of /ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/huawei-bgp:bgp-routing/bgp-neighbors/bgp-neighbor/af-specific-config/l2vpn/evpn/active is true. |
/ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/huawei-bgp:bgp-routing/bgp-neighbors/bgp-neighbor/af-specific-config/l2vpn/evpn/huawei-ethernet-vpn:advertise-host-route-mode |
Enables the local device to advertise ARP routes or IRB routes to its BGP EVPN peers. |
The value is of the enumerated type:
|
N/A |
/ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/huawei-bgp:bgp-routing /bgp-neighbors/bgp-neighbor/af-specific-config/l2vpn/evpn/huawei-ethernet-vpn:advertise-host-ipv6-route-mode |
Enables the local device to advertise ND routes or IRBv6 routes to its BGP EVPN peers. |
The value is of the enumerated type:
|
N/A |
/ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/huawei-bgp:bgp-routing/bgp-router/af-configuration/l2vpn/evpn/vpn-target-filter |
Configures the device to filter received EVPN routes based on the VPN target. |
The value is of the enumerated type:
|
N/A |
/ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/huawei-bgp:bgp-routing/bgp-router/af-configuration/l2vpn/evpn/cluster-id |
Configures the cluster ID of the route reflector in the BGP EVPN address family view. |
The value can be in either of the following formats:
|
N/A |
/ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/huawei-bgp:bgp-routing/bgp-neighbors/bgp-neighbor/af-specific-config/l2vpn/evpn/apply-policys/apply-policy/direction |
Applies a route-policy to the routes received from or advertised to EVPN peers. |
The value is of the enumerated type:
|
N/A |
/ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/huawei-bgp:bgp-routing/bgp-neighbors/bgp-neighbor/af-specific-config/l2vpn/evpn/apply-policys/apply-policy/route-policy-name |
Specifies the name of a route-policy. |
The value is a string of 1 to 40 case-sensitive characters, with spaces not supported. If the string is enclosed in double quotation marks (" "), the string can contain spaces. |
N/A |
/huawei-ethernet-vpn:evpn-instance-get/get-num |
Indicates the maximum number of EVPN instances that can be queried at a time. |
The value is an integer. A maximum of 1024 EVPN instances can be queried at a time, even when this object is set to a value greater than 1024. |
N/A |
/huawei-ethernet-vpn:evpn-instance-get/evpn-instance/evpn-name |
Queries detailed information about EVPN instances based on a specified VPN instance name. |
The value is a string of 1 to 31 case-sensitive characters. If spaces are used, the string must be enclosed in double quotation marks (" "). |
N/A |
/huawei-ethernet-vpn:evpn-instance-get/evpn-instance/search-type |
Specifies an EVPN instance query condition. |
The value is of the enumerated type:
|
When this object is set to vpn-instance, the /huawei-ethernet-vpn:evpn-instance-get/evpn-instance/evpn-name object must also be configured. |
/huawei-ethernet-vpn:evpn-instance-get/last-evpn-instance-details/last-evpn-name |
Specifies the name of an EVPN instance from which the system continues the query. |
The value is a string of 1 to 31 case-sensitive characters. If spaces are used, the string must be enclosed in double quotation marks (" "). |
N/A |
/huawei-ethernet-vpn:evpn-instance-get/last-evpn-instance-details/search-type |
Specifies a query condition. |
The value is of the enumerated type:
|
When this object is set to vpn-instance, the /huawei-ethernet-vpn:evpn-instance-get/last-evpn-instance-details/last-evpn-name object must also be configured. |
/huawei-ethernet-vpn:evpn-peer-get/get-num |
Indicates the maximum number of EVPN peers that can be queried at a time. |
The value is an integer. A maximum of 1024 EVPN peers can be queried at a time, even when this object is set to a value greater than 1024. |
N/A |
/huawei-ethernet-vpn:evpn-peer-get/evpn-peer/evpn-name |
Queries information about the peer with a specified EVPN instance name. |
The value is a string of 1 to 31 case-sensitive characters. If spaces are used, the string must be enclosed in double quotation marks (" "). |
N/A |
/huawei-ethernet-vpn:evpn-peer-get/evpn-peer/vni |
Queries information about an EVPN peer with a specified VNI. |
The value is an integer in the range from 1 to 16777215. |
N/A |
/huawei-ethernet-vpn:evpn-peer-get/evpn-peer/peer-ip |
Queries information about an EVPN peer with a specified IP address. |
The value is in dotted decimal notation. |
N/A |
/huawei-ethernet-vpn:evpn-peer-get/evpn-peer/search-type |
Specifies an EVPN peer query type. |
The value is of the enumerated type:
|
When this object is set to vpn-instance, the /huawei-ethernet-vpn:evpn-peer-get/evpn-peer/evpn-name object must also be configured. |
/huawei-ethernet-vpn:evpn-peer-get/last-evpn-peer-details/last-evpn-name |
Specifies the name of an EVPN instance from which the system continues to query EVPN peers. |
The value is a string of 1 to 31 case-sensitive characters. If spaces are used, the string must be enclosed in double quotation marks (" "). |
N/A |
/huawei-ethernet-vpn:evpn-peer-get/last-evpn-peer-details/last-vni |
Specifies a VNI from which the system continues to query EVPN peers. |
The value is an integer that ranges from 1 to 16777215, in percentage. |
N/A |
/huawei-ethernet-vpn:evpn-peer-get/last-evpn-peer-details/last-peer-ip |
Specifies the IP address of an EVPN peer from which the system continues to query EVPN peers. |
The value is in dotted decimal notation. |
N/A |
/huawei-ethernet-vpn:evpn-peer-get/last-evpn-peer-details/search-type |
Specifies a query condition. |
The value is of the enumerated type:
|
When this object is set to vpn-instance, the /huawei-ethernet-vpn:evpn-peer-get/last-evpn-peer-details/last-evpn-name object must also be configured. |
Object |
Description |
---|---|
/huawei-ethernet-vpn:evpn-instance-get/evpn-instance-details/evpn-name |
Indicates the name of an EVPN instance. |
/huawei-ethernet-vpn:evpn-instance-get/evpn-instance-details/route-distinguisher |
Indicates the RD of an EVPN instance. |
/huawei-ethernet-vpn:evpn-instance-get/evpn-instance-details/bd-id |
Indicates the BD ID bound to an EVPN instance. |
/huawei-ethernet-vpn:evpn-instance-get/evpn-instance-details/source-ip |
Indicates the IP address of the source VTEP bound to an EVPN instance. |
/huawei-ethernet-vpn:evpn-instance-get/evpn-instance-details/evrf-id |
Indicates the VRF ID of an EVPN instance. |
/huawei-ethernet-vpn:evpn-instance-get/evpn-instance-details/import-vpn-targets |
Indicates the list of import route targets for an EVPN instance. |
/huawei-ethernet-vpn:evpn-instance-get/evpn-instance-details/export-vpn-targets |
Indicates the list of export route targets for an EVPN instance. |
/huawei-ethernet-vpn:evpn-instance-get/summary |
Indicates the total number of EVPN instances that meet the filtering condition. |
/huawei-ethernet-vpn:evpn-instance-get/has-more |
Indicates the query status.
|
/huawei-ethernet-vpn:evpn-peer-get/evpn-peer-details/evpn-name |
Indicates the name of an EVPN instance. |
/huawei-ethernet-vpn:evpn-peer-get/evpn-peer-details/vni |
Indicates the Layer 2 VNI carried by the peer EVPN. |
/huawei-ethernet-vpn:evpn-peer-get/evpn-peer-details/peer-ip |
Indicates the peer IP address corresponding to an EVPN instance. |
/huawei-ethernet-vpn:evpn-peer-get/evpn-peer-details/evrf-id |
Indicates the VRF ID of an EVPN peer. |
/huawei-ethernet-vpn:evpn-peer-get/evpn-peer-details/status |
Indicates the connection status of an EVPN peer.
|
/huawei-ethernet-vpn:evpn-peer-get/summary |
Indicates the total number of EVPN peers that meet the filtering condition. |
/huawei-ethernet-vpn:evpn-peer-get/has-more |
Indicates the query status.
|
Configuring VXLAN EVPN
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>
Configuring L2VPN EVPN
This section provides a sample of configuring L2VPN EVPN using the config method.
Operation |
XPATH |
---|---|
config |
/ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/huawei-bgp:bgp-routing/bgp-neighbors/bgp-neighbor/af-specific-config/l2vpn/evpn/active /ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/huawei-bgp:bgp-routing/bgp-neighbors/bgp-neighbor/af-specific-config/l2vpn/evpn/route-reflector-client /ietf-routing:routing/routing-instance/routing-protocols/routing-protocol/huawei-bgp:bgp-routing/bgp-neighbors/bgp-neighbor/af-specific-config/l2vpn/evpn/huawei-ethernet-vpn:advertise-host-route-mode |
Data Requirements
Item |
Data |
Description |
---|---|---|
Function of enabling the local device to exchange routing information with specified peers |
true |
Enable the local device to exchange routing information with specified peers. |
Function of enabling the local device as a route reflector and its peers as the clients of the route reflector |
true |
Enable the local device as a route reflector and its peers as the clients of the route reflector. |
Function of enabling the local device to advertise ARP routes or IRB routes to its BGP EVPN peers |
arp |
Enable the local device to advertise ARP routes or IRB routes to its BGP EVPN peers. |
Request Example
<?xml version='1.0' encoding='UTF-8'?> <rpc message-id="3" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <edit-config> <target> <running/> </target> <config> <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:bgp-router> <hw-bgp:bgp-neighbors> <hw-bgp:bgp-neighbor> <hw-bgp:peer-address>10.1.1.1</hw-bgp:peer-address> <hw-bgp:remote-as>100</hw-bgp:remote-as> <hw-bgp:af-specific-config> <hw-bgp:l2vpn> <hw-bgp:evpn> <hw-bgp:active>true</hw-bgp:active> <hw-bgp:route-reflector-client>true</hw-bgp:route-reflector-client> <hw-ethvpn:advertise-host-route-mode xmlns:hw-ethvpn="urn:huawei:params:xml:ns:yang:huawei-ethernet-vpn">arp</hw-ethvpn:advertise-host-route-mode> </hw-bgp:evpn> </hw-bgp:l2vpn> </hw-bgp:af-specific-config> </hw-bgp:bgp-neighbor> </hw-bgp:bgp-neighbors> </hw-bgp:bgp-routing> </rt:routing-protocol> </rt:routing-protocols> </rt:routing-instance> </rt:routing> </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="3"> <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="3"> <rpc-error> <error-type>application</error-type> <error-tag>invalid-value</error-tag> <error-severity>error</error-severity> <error-path>/ietf-routing:routing/routing-instance[name='rt']/routing-protocols/routing-protocol[type='huawei-bgp:bgp-routing-protocol'][name='bgp']/huawei-bgp:bgp-routing/bgp-neighbors/bgp-neighbor[peer-address='10.1.1.1']/af-specific-config/l2vpn/evpn/route-reflector-client</error-path> <error-message>validation failed(When condition "(../active='true') and (../../../../remote-as = ../../../../../../bgp-router/local-as-number)" not satisfied.).</error-message> </rpc-error> </rpc-reply>
Querying EVPN Instances
This section provides a sample of querying EVPN instances using the rpc method.
Operation |
XPATH |
---|---|
rpc |
|
Data Requirements
Item |
data |
Description |
---|---|---|
Maximum number of EVPN instances that can be queried at a time |
3 |
Set the maximum number of EVPN instances that can be queried at a time to 3. |
Name of an EVPN instance to be queried |
evpn1 |
Query information about the EVPN instance evpn1. |
EVPN instance query condition |
vpn-instance |
Query information about EVPN instances based on a specified VPN instance name. |
Sample request
<?xml version="1.0" encoding="UTF-8"?> <rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1"> <hw-ethvpn:evpn-instance-get xmlns:hw-ethvpn="urn:huawei:params:xml:ns:yang:huawei-ethernet-vpn"> <hw-ethvpn:get-num>3</hw-ethvpn:get-num> <hw-ethvpn:evpn-instance> <hw-ethvpn:evpn-name>evpn1</hw-ethvpn:evpn-name> <hw-ethvpn:search-type>vpn-instance</hw-ethvpn:search-type> </hw-ethvpn:evpn-instance> </hw-ethvpn:evpn-instance-get> </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="1"> <evpn-instance-get xmlns="urn:huawei:params:xml:ns:yang:huawei-ethernet-vpn"> <evpn-instance-details> <evpn-name>evpn1</evpn-name> <route-distinguisher>51:17</route-distinguisher> <evrf-id>1</evrf-id> <export-vpn-targets> <export-vpn-target>0:4294967295</export-vpn-target> <export-vpn-target>1:100</export-vpn-target> <export-vpn-target>10:1</export-vpn-target> </export-vpn-targets> <import-vpn-targets> <import-vpn-target>0:4294967295</import-vpn-target> <import-vpn-target>10:1</import-vpn-target> </import-vpn-targets> </evpn-instance-details> <summary>1</summary> <has-more>false</has-more> </evpn-instance-get> </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="1"> <evpn-instance-get xmlns="urn:huawei:params:xml:ns:yang:huawei-ethernet-vpn"> <has-more>false</has-more> </evpn-instance-get> </rpc-reply>