From f1cf5af6dae136ead1f8233b61d245e7d67863ad Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Mon, 29 Jul 2019 14:44:44 +0200 Subject: [PATCH] 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 --- ospfd/ospf_lsa.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ospfd/ospf_lsa.c b/ospfd/ospf_lsa.c index 7aa4a48d81..47327ad25c 100644 --- a/ospfd/ospf_lsa.c +++ b/ospfd/ospf_lsa.c @@ -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. */ if (!ospf_redistribute_check(ospf, ei, NULL)) return NULL; -- 2.39.5