#L3VPN configuration (BGP as CE-PE protocol)
#URL
#OPENCONFIG YANG
CONSTRAINTS
Network-instance with name must exist before defined-sets or both must be created in the same transaction.
Delete must be executed in reverse order or in the same transaction.
Policy -route-target-import and -route-target-export must exist on device before are used in network-instance.
#OS Configuration Commands
#CISCO IOS XR (5.1.3) (6.1.2)
#CLI
vrf address-family ipv4 unicast import route-target export route-target interface vrf router bgp vrf rd address-family ipv4 unicast network neighbor remote-as address-family ipv4 unicast route-policy -route-target-import in route-policy -route-target-export out
#CISCO IOS XR (6.6.1)
#CLI
router bgp vrf address-family ipv4 unicast aggregate-address summary-only route-policy
summary-only is a conversion of "frinx-bgp-extension:summary-only" set true
#Cisco IOS (VIOS 15.6(2)T)
#CLI
ip vrf rd route-target export route-target export route-target export route-target import route-target import route-target import interface ip vrf forwarding router bgp address-family ipv4 vrf network neighbor remote-as neighbor activate
#Junos 18.2R1-S2.1
#CLI
set routing-instances routing-options aggregate route policy
#Huawei NE5000E (V800R009C10SPC310)
#CLI
ip vpn-instance ipv4-family route-distinguisher prefix limit vpn-target export-extcommunity vpn-target import-extcommunity interface undo shutdown ip binding vpn-instance bgp ipv4-family vpn-instance network peer as-number peer route-policy -route-target-import import peer route-policy -route-target-export export
1 to 100000 is conversion of set "frinx-huawei-network-instance-extension:prefix-limit-from"
1 to 100 is conversion of set "frinx-huawei-network-instance-extension:prefix-limit-to"
#Unit
Link to github : huawei-unit