From 39507a51f9ec0b22796d1ddb591812fc4c6ac903 Mon Sep 17 00:00:00 2001 From: Ruben Herold Date: Thu, 29 Oct 2026 15:22:24 +0100 Subject: static: T9482: handle a blackhole next to a next-hop of the same distance FRR staticd refuses a blackhole or reject route next to a next-hop or interface route of the same prefix and distance. VyOS accepted the combination, the commit failed later in frr-reload and on some FRR versions the config manager stalled. Add a disable node to blackhole and reject. Verification refuses an enabled blackhole or reject route next to a next-hop, interface or dhcp-interface route of the same distance, and blackhole together with reject, in routes, tables and VRFs. The same applies to the default route of a PPPoE interface and of a DHCP interface that has a gateway. A commit that changes only such an interface does not run the check, frr-reload refuses it and the commit is rolled back. A config migration sets disable on the route FRR did not apply, so existing configurations keep loading and route as before. --- interface-definitions/include/static/static-route-blackhole.xml.i | 3 ++- .../include/static/static-route-distance-default.xml.i | 6 ++++++ interface-definitions/include/static/static-route-reject.xml.i | 3 ++- interface-definitions/include/static/static-route.xml.i | 4 ++-- interface-definitions/include/static/static-route6.xml.i | 4 ++-- 5 files changed, 14 insertions(+), 6 deletions(-) create mode 100644 interface-definitions/include/static/static-route-distance-default.xml.i (limited to 'interface-definitions/include/static') diff --git a/interface-definitions/include/static/static-route-blackhole.xml.i b/interface-definitions/include/static/static-route-blackhole.xml.i index 487f775f5..c926b0f32 100644 --- a/interface-definitions/include/static/static-route-blackhole.xml.i +++ b/interface-definitions/include/static/static-route-blackhole.xml.i @@ -4,7 +4,8 @@ Silently discard pkts when matched - #include + #include + #include #include diff --git a/interface-definitions/include/static/static-route-distance-default.xml.i b/interface-definitions/include/static/static-route-distance-default.xml.i new file mode 100644 index 000000000..b74b684bb --- /dev/null +++ b/interface-definitions/include/static/static-route-distance-default.xml.i @@ -0,0 +1,6 @@ + +#include + + 1 + + diff --git a/interface-definitions/include/static/static-route-reject.xml.i b/interface-definitions/include/static/static-route-reject.xml.i index ef713ac85..a04dce3d2 100644 --- a/interface-definitions/include/static/static-route-reject.xml.i +++ b/interface-definitions/include/static/static-route-reject.xml.i @@ -4,7 +4,8 @@ Emit an ICMP unreachable when matched - #include + #include + #include #include diff --git a/interface-definitions/include/static/static-route.xml.i b/interface-definitions/include/static/static-route.xml.i index 59742dd3b..8a2a38e59 100644 --- a/interface-definitions/include/static/static-route.xml.i +++ b/interface-definitions/include/static/static-route.xml.i @@ -31,7 +31,7 @@ #include - #include + #include #include #include @@ -49,7 +49,7 @@ #include - #include + #include #include #include #include diff --git a/interface-definitions/include/static/static-route6.xml.i b/interface-definitions/include/static/static-route6.xml.i index a3d972d39..0bbd1aca2 100644 --- a/interface-definitions/include/static/static-route6.xml.i +++ b/interface-definitions/include/static/static-route6.xml.i @@ -30,7 +30,7 @@ #include - #include + #include #include #include @@ -48,7 +48,7 @@ #include - #include + #include #include #include #include -- cgit v1.2.3