Page MenuHomeVyOS Platform

BGP directly connected neighbors don't compatible with ebgp-multihop
Closed, ResolvedPublicBUG

Description

BGP directly connected neighbors (eth0/tun0 etc) don't compatible with ebgp-multihop
Add verify check:

set protocols bgp neighbor eth0 interface peer-group 'PGRP'
set protocols bgp neighbor eth0 ebgp-multihop 10
set protocols bgp peer-group PGRP address-family ipv4-unicast
set protocols bgp peer-group PGRP remote-as '65001'
set protocols bgp system-as '65001'

Commit:

vyos@r14# commit
[ protocols bgp ]

WARNING: BGP neighbor "eth0" requires address-family!
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


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



[[protocols bgp]] failed
Commit failed

FRR original error

r14# conf t
r14(config)# router bg
r14(config-router)# neighbor eth0 ebgp-multihop 10
% Operation not allowed on a directly connected neighbor
r14(config-router)#

Details

Difficulty level
Easy (less than an hour)
Version
VyOS 1.4-rolling-202210020218
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 changed the task status from Open to In progress.Oct 12 2022, 2:43 PM
Viacheslav claimed this task.

PR https://github.com/vyos/vyos-1x/pull/1586

vyos@r14# commit
[ protocols bgp ]
Ebgp-multihop can not be used with directly connected neighbor "eth0"

[[protocols bgp]] failed
Commit failed
[edit]
vyos@r14#
Viacheslav changed the task status from In progress to Needs testing.Oct 12 2022, 7:17 PM
Viacheslav moved this task from Need Triage to Finished on the VyOS 1.4 Sagitta board.