Page MenuHomeVyOS Platform

Bgp not possible to use internal|external remote as
Closed, DuplicatePublicBUG


Validators + regex don't work together.

vyos@r2-roll# set protocols bgp 65001 neighbor remote-as external 

  'external' is not a valid integer number



Difficulty level
Unknown (require assessment)
VyOS 1.4-rolling-202102162107
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)

Event Timeline

Viacheslav changed the subtype of this task from "Feature Request" to "Bug".
Viacheslav changed Version from - to VyOS 1.4-rolling-202102162107.Feb 17 2021, 11:58 AM

Well, they do work together.

vyos@vyos-test-2:~$ ${vyos_libexec_dir}/validate-value --regex '^(external|internal)$' --exec "${vyos_validators_dir}/numeric --range 1-4294967294" --value "external" && echo y
'external' is not a valid integer number

But there's a valid point here and in T2759, it prints a useless error message, and that's definitely a bug.