]> git.puffer.fish Git - matthieu/frr.git/commitdiff
lib: Get the weight from Zebra
authorDonatas Abraitis <donatas@opensourcerouting.org>
Tue, 18 Jun 2024 09:06:46 +0000 (12:06 +0300)
committerDonatas Abraitis <donatas@opensourcerouting.org>
Tue, 18 Jun 2024 09:15:33 +0000 (12:15 +0300)
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
lib/zclient.c

index 1aab7b48ba8f4187dd22311d08c7c2f82753111e..ca4880da436111ff8633bf01aadd5977e2978bac 100644 (file)
@@ -2134,6 +2134,7 @@ struct nexthop *nexthop_from_zapi_nexthop(const struct zapi_nexthop *znh)
        n->ifindex = znh->ifindex;
        n->gate = znh->gate;
        n->srte_color = znh->srte_color;
+       n->weight = znh->weight;
 
        /*
         * This function currently handles labels