mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-17 16:48:43 +00:00
Don't try to install static routes to disconnected neighbors.
This commit is contained in:
parent
eab0d1e5e5
commit
25287d6f7e
@ -73,7 +73,8 @@ static_start(struct proto *p)
|
|||||||
r->chain = n->data;
|
r->chain = n->data;
|
||||||
n->data = r;
|
n->data = r;
|
||||||
r->neigh = n;
|
r->neigh = n;
|
||||||
static_install(p, r, n->iface);
|
if (n->iface)
|
||||||
|
static_install(p, r, n->iface);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
log(L_ERR "Static route destination %I is invalid. Ignoring.\n", r->via);
|
log(L_ERR "Static route destination %I is invalid. Ignoring.\n", r->via);
|
||||||
|
Loading…
Reference in New Issue
Block a user