mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-30 17:11:42 +00:00
ospfd: don't ASE with router-ID 0
The ASEs will be generated later by ospf_external_lsa_rid_change(). Signed-off-by: David Lamparter <equinox@diac24.net>
This commit is contained in:
parent
bcbe98cca0
commit
f1cf5af6da
@ -1979,6 +1979,13 @@ struct ospf_lsa *ospf_external_lsa_originate(struct ospf *ospf,
|
|||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
if (ospf->router_id.s_addr == 0) {
|
||||||
|
if (IS_DEBUG_OSPF_EVENT)
|
||||||
|
zlog_debug("LSA[Type5:%pI4]: deferring AS-external-LSA origination, router ID is zero",
|
||||||
|
&ei->p.prefix);
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
/* Check the AS-external-LSA should be originated. */
|
/* Check the AS-external-LSA should be originated. */
|
||||||
if (!ospf_redistribute_check(ospf, ei, NULL))
|
if (!ospf_redistribute_check(ospf, ei, NULL))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user