Cisco RPL vs Huawei XPL Route Policy Language Configuration

 

Cisco uses RPL (Route Policy Language) while Huawei uses XPL (Extended Route Policy language). Basically they are the same concept but of course the commands are slightly different, though editing the policy or prefix-set requires vi/vim knowlege.

Cisco IOS-XR RPL Huawei NE40E XPL
Adding Prefix-Set:
prefix-set FNT-Prefixes
  192.168.0.0/24,
  172.16.0.0/23
end-set
Adding Prefix-Set:
xpl ip-prefix-list FNT-Prefixes
192.168.0.0 24,
172.16.0.0 23
end-list
Creating Route Policy:
route-policy FNT-EXPORT
  if (destination in FNT-Prefixes) then
    prepend as-path 65555 2
  endif
end-policy
Creating Route Policy:
xpl route-filter FNT-EXPORT
  if ip route-destination in FNT-Prefixes then
   apply as-path 55430 2 additive
  endif
  end-filter

Applying the Policy:
router bgp 65555
neighbor 192.168.1.2
remote-as 65556
address-family ipv4 unicast
route-policy FNT-EXPORT out
Applying the Policy:
bgp 65555
peer 192.168.1.2 as-number 65556
ipv4-family unicast
  peer 192.168.1.2 route-filter FNT-EXPORT export
Editing the Prefix-set and Policy:
#edit prefix-set FNT-Prefixes vim
#edit route-policy FNT-EXPORT vim
Editing the Prefix-set and Policy:
<>edit xpl ip-prefix-list FNT-Prefixes
<>edit xpl route-filter FNT-EXPORT

Be First to Comment

Leave a Reply

Your email address will not be published.