summaryrefslogtreecommitdiff
path: root/zebra/connected.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2024-02-22 15:53:45 -0500
committerDonald Sharp <sharpd@nvidia.com>2024-08-21 10:17:47 -0400
commitb62de7de2e8bb2ee8181ddfc2daf47f99aaf8e11 (patch)
tree8a30fc998f87cc94e8cbe167c71b996ac30f10ca /zebra/connected.c
parentdb87ab3d861a2da9720317762b6990b2295e7afd (diff)
zebra, tests: Connected and Local routes should have a weight of 1
All routes received by zebra from upper level protocols have a weight of 1. Let's just make everything extremely consistent in our code. Lot's of tests needed to be fixed up to make this work. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'zebra/connected.c')
-rw-r--r--zebra/connected.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/zebra/connected.c b/zebra/connected.c
index 404f892f6e..974a1c17a2 100644
--- a/zebra/connected.c
+++ b/zebra/connected.c
@@ -185,6 +185,7 @@ void connected_up(struct interface *ifp, struct connected *ifc)
.type = NEXTHOP_TYPE_IFINDEX,
.ifindex = ifp->ifindex,
.vrf_id = ifp->vrf->vrf_id,
+ .weight = 1,
};
struct zebra_vrf *zvrf;
uint32_t metric;