Page MenuHomeVyOS Platform

Add support for Large BGP Community show commands
Closed, ResolvedPublicBUG

Description

Dear VyOS community,

after adding support for Large BGP Community it would be nice to have the show commands to see what's happen.

Details

Difficulty level
Easy (less than an hour)
Version
-
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)

Event Timeline

c-po changed the task status from Open to Needs testing.Jul 30 2019, 3:11 PM
c-po assigned this task to rherold.
c-po triaged this task as Low priority.
c-po removed a project: VyOS 1.2 Crux (VyOS 1.2.2).
c-po changed Version from 1.2.2 to -.

It seems in the FRR part of commands not working.

set policy large-community-list FOO rule 10 action 'permit'
set policy large-community-list FOO rule 10 regex '50:10 20:50 50:55'
set policy route-map FOO rule 10 action 'permit'
set policy route-map FOO rule 10 set large-community '50:10 20:50 50:55'
set protocols bgp 65001 neighbor 192.168.122.12 address-family ipv4-unicast route-map import 'FOO'
set protocols bgp 65001 neighbor 192.168.122.12 remote-as '65001'

Work:

vyos@r1-roll:~$ show ip large-community-list FOO
Named large community expanded list FOO
    permit 50:10 20:50 50:55

vyos@r1-roll:~$ show ip bgp large-community 
BGP table version is 2, local router ID is 192.168.122.11, vrf id 0

   Network          Next Hop            Metric LocPrf Weight Path
*>i100.64.0.0/24    192.168.122.12           0    100      0 i

vyos@r1-roll:~$ show ip bgp large-community-info 
Address Refcnt Large-community
[0x560c491f8020] (1) 20:0:50 50:0:10 50:0:55

Don't work

vyos@r1-roll:~$ show ip bgp large-community-list FOO
vyos@r1-roll:~$ 

vyos@r1-roll:~$ vtysh -c "show ip bgp large-community-list FOO"
vyos@r1-roll:~$
dmbaturin set Is it a breaking change? to Unspecified (possibly destroys the router).

Large community format:

"1:2:3"
"1:2:3 5:6:7"
"4123456789:4123456780:4123456788"
"^5:.*:7$"

Large-community and large-community-list it is different functions.
It seems all works fine

set policy route-map FOO rule 10 action 'permit'
set policy route-map FOO rule 10 set large-community '4123456789:4123456780:4123456788'

set protocols bgp 65001 neighbor 192.0.2.2 address-family ipv4-unicast route-map import 'FOO'
set protocols bgp 65001 neighbor 192.0.2.2 remote-as '65002'

[email protected]:~$ show ip bgp large-community 

   Network          Next Hop            Metric LocPrf Weight Path
*> 100.64.2.0/24    192.0.2.2                0             0 65002 i
*> 100.64.5.0/24    192.0.2.2                0             0 65002 i

[email protected]:~$ show ip bgp 100.64.2.0/24
BGP routing table entry for 100.64.2.0/24
Paths: (1 available, best #1, table default)
  Advertised to non peer-group peers:
  192.0.2.2
  65002
    192.0.2.2 from 192.0.2.2 (192.168.122.11)
      Origin IGP, metric 0, valid, external, best (First path received)
      Large Community: 4123456789:4123456780:4123456788

VyOS 1.3.0-rc6 (upcoming) and 1.4 have the following commands available:

  • show bgp large-community
  • show bgp large-community-list
  • show bgp ipv4 large-community
  • show bgp ipv4 large-community-list
  • show bgp ipv6 large-community
  • show bgp ipv6 large-community-list