Page MenuHomeVyOS Platform

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

Description

Validators + regex don't work together.

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

  'external' is not a valid integer number

[edit]

https://github.com/vyos/vyos-1x/blob/current/interface-definitions/include/bgp-remote-as.xml.i#L21-L22

Details

Difficulty level
Unknown (require assessment)
Version
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
y

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