mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54:54 +00:00
Preference moved to RTA and set explicitly in protocols
This commit is contained in:
committed by
Maria Matejka
parent
d5a32563df
commit
eb937358c0
@@ -60,6 +60,7 @@ static_announce_rte(struct static_proto *p, struct static_route *r)
|
||||
a->source = RTS_STATIC;
|
||||
a->scope = SCOPE_UNIVERSE;
|
||||
a->dest = r->dest;
|
||||
a->pref = p->p.main_channel->preference;
|
||||
|
||||
if (r->dest == RTD_UNICAST)
|
||||
{
|
||||
@@ -721,9 +722,9 @@ static_get_route_info(rte *rte, byte *buf)
|
||||
{
|
||||
eattr *a = ea_find(rte->attrs->eattrs, EA_GEN_IGP_METRIC);
|
||||
if (a)
|
||||
buf += bsprintf(buf, " (%d/%u)", rte->pref, a->u.data);
|
||||
buf += bsprintf(buf, " (%d/%u)", rte->attrs->pref, a->u.data);
|
||||
else
|
||||
buf += bsprintf(buf, " (%d)", rte->pref);
|
||||
buf += bsprintf(buf, " (%d)", rte->attrs->pref);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Reference in New Issue
Block a user