diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2024-02-22 15:53:45 -0500 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2024-08-21 10:17:47 -0400 |
| commit | b62de7de2e8bb2ee8181ddfc2daf47f99aaf8e11 (patch) | |
| tree | 8a30fc998f87cc94e8cbe167c71b996ac30f10ca /zebra/connected.c | |
| parent | db87ab3d861a2da9720317762b6990b2295e7afd (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.c | 1 |
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; |
