Page MenuHomeVyOS Platform

bgp: validity check for bestpath med option
Closed, ResolvedPublicBUG

Description

When configured this parameter "set protocols bgp parameters bestpath med confed" and try to delete overall command, a commit error is received as it expects a value to be configured for the bestpath med and also does not delete the immediate hierarchy:

vyos@vyos# del protocols bgp parameters bestpath med confed
[edit]
vyos@vyos# comp
[protocols bgp parameters bestpath med]
- confed { }
vyos@vyos# commit
[ protocols bgp ]
VyOS had an issue completing a command.

We are sorry that you encountered a problem while using VyOS.
There are a few things you can do to help us (and yourself):
- Contact us using the online help desk if you have a subscription:
  https://support.vyos.io/
- Make sure you are running the latest version of VyOS available at:
  https://vyos.net/get/
- Consult the community forum to see how to handle this issue:
  https://forum.vyos.io
- Join us on Slack where our users exchange help and advice:
  https://vyos.slack.com

When reporting problems, please include as much information as possible:
- do not obfuscate any data (feel free to contact us privately if your
  business policy requires it)
- and include all the information presented below

Report time:      2023-08-07 06:16:53
Image version:    VyOS 1.4-rolling-202308060317
Release train:    current

Built by:         [email protected]
Built on:         Sun 06 Aug 2023 03:17 UTC
Build UUID:       a2edfca7-c3b1-4158-acbf-d8226af46599
Build commit ID:  705a03eb980c84

Architecture:     x86_64
Boot via:         installed image
System type:      KVM guest

Hardware vendor:  QEMU
Hardware model:   Standard PC (i440FX + PIIX, 1996)
Hardware S/N:
Hardware UUID:    72d1c7d5-d73c-41c9-96c2-5899ca8970da

Traceback (most recent call last):
  File "/usr/libexec/vyos/conf_mode/protocols_bgp.py", line 572, in <module>
    apply(c)
  File "/usr/libexec/vyos/conf_mode/protocols_bgp.py", line 563, in apply
    frr_cfg.commit_configuration(bgp_daemon)
  File "/usr/lib/python3/dist-packages/vyos/frr.py", line 483, in commit_confign
    raise ConfigurationNotValid(f'Config commit retry counter ({count_max}) exc)
vyos.frr.ConfigurationNotValid: Config commit retry counter (5) exceeded for bg!



[[protocols bgp]] failed
Commit failed
[edit]

It does not send an incomplete command when just configured with med value and a commit error is received:

vyos@vyos# set  protocols bgp parameters bestpath med
[edit]
vyos@vyos# commit
[ protocols bgp ]
VyOS had an issue completing a command.

It allows to delete the config in this manner:

vyos@vyos# del protocols bgp parameters bestpath med
[edit]
vyos@vyos# commit

Details

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