From 8cc5bb09e344038a1f8dff96946e05ec80607c93 Mon Sep 17 00:00:00 2001 From: "Ondrej Zajicek (work)" Date: Wed, 2 Dec 2020 05:02:26 +0100 Subject: [PATCH] Filter: Add 'weight' route attribute Add 'weight' route attribute that allows to get and set ECMP weight of nexthops. Similar to 'gw' attribute, it is limited to the first nexthop, but it is useful for handling BGP multipath, where an ECMP route is merged from multiple regular routes. --- doc/bird.sgml | 9 +++++++++ filter/config.Y | 3 ++- filter/data.h | 1 + filter/f-inst.c | 15 +++++++++++++++ 4 files changed, 27 insertions(+), 1 deletion(-) diff --git a/doc/bird.sgml b/doc/bird.sgml index 05216c4a..5408cb2a 100644 --- a/doc/bird.sgml +++ b/doc/bird.sgml @@ -1674,6 +1674,15 @@ Common route attributes are: creation/removal. Zero is returned for routes with undefined outgoing interfaces. Read-only. +