Page MenuHomeVyOS Platform

Bgp policy route-map bug with set several extcommunity rt
Closed, ResolvedPublicBUG

Description

There is a bug int the regex

Impossible to mark several extcommunity values.

vyos@testrouter# set policy route-map FOO rule 10 set extcommunity rt '1111:2222222'
[edit]
vyos@testrouter#
[edit]
vyos@testrouter# set policy route-map FOO rule 10 set extcommunity rt '1111:2222222 33:444444'



  Should be in form: ASN:NN or IPADDR:NN where ASN is autonomous system number
  Value validation failed
  Set failed

[edit]
vyos@testrouter#

vyos@testrouter# set policy route-map FOO rule 10 set extcommunity rt '6500:24 6500:23 192.168.0.1:111 192.168.0.1:222'



  Should be in form: ASN:NN or IPADDR:NN where ASN is autonomous system number
  Value validation failed
  Set failed

[edit]
vyos@testrouter#

Details

Difficulty level
Unknown (require assessment)
Version
VyOS 1.4-rolling-202203300217
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)

Event Timeline

Viacheslav renamed this task from Bgp bug with set several extcommunity rt to Bgp policy route-map bug with set several extcommunity rt.Mar 31 2022, 6:48 PM
Viacheslav changed the task status from Open to In progress.Mar 31 2022, 6:50 PM
Viacheslav claimed this task.
Viacheslav moved this task from Need Triage to Finished on the VyOS 1.4 Sagitta board.

This problem still exist on VyOS 1.4-rolling-202306070317

@apasheev it were rewritten in https://github.com/vyos/vyos-1x/pull/1567/files#diff-7839502816137d55f673c064e6ec87a2eed7dc80563b1e307363c3e4b090a2b3R302

set policy route-map FOO rule 10 set extcommunity rt '1111:2222222'
set policy route-map FOO rule 10 set extcommunity rt '33:444'
set policy route-map FOO rule 10 action permit

And use multi values, that convert to FRR

!
route-map FOO permit 10
 set extcommunity rt 1111:2222222 33:444
exit
!
This comment was removed by SrividyaA.