Page MenuHomeVyOS Platform

BFD: remote 'peer shutdown' (AdminDown) no longer tears down BGP, OSPF or BFD-tracked static routes
Open, NormalPublicBUG

Description

When the BFD neighbour sets protocols bfd peer X shutdown (BFD AdminDown), the local router keeps BGP Established, OSPF Full and the BFD-tracked static route installed. If the path then really fails, the static route stays installed (on rolling still installed 60 s after the real failure). On 1.5.1 the same AdminDown resets BGP and OSPF and removes the static route.

Rolling (after the neighbour's BFD peer shutdown):

+5 s : bfd=down bgp=Established ospf=1 static=1 kroute=1
+60 s: bfd=down bgp=Established ospf=1 static=1 kroute=1

1.5.1: at +5 s static=0 kroute=0, BGP and OSPF reset.

Cause
FRR 10.7 commit ad60ab55f2 follows RFC 5882 §3.2: AdminDown is not treated as a path failure. The consequence for VyOS is that a BFD-tracked static route loses its only liveness check once the peer is administratively shut; PIM BFD neighbours behave the same.

Suggested fix / question
Decide the intended behaviour: either keep FRR's RFC behaviour and document it (release note: BFD AdminDown no longer withdraws routes), or restore the previous behaviour for static routes (e.g. treat AdminDown as down for bfd on static routes, or offer an option).

Details

Version
rolling, 1.5
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)