diff options
author | Satheesh Kumar K <sathk@cumulusnetworks.com> | 2019-11-08 07:00:33 +0100 |
---|---|---|
committer | Satheesh Kumar K <sathk@cumulusnetworks.com> | 2019-11-14 10:16:05 +0100 |
commit | e6a22aeb420c2c54530da238b3ec595404a5956f (patch) | |
tree | cdbfdfb3e7dde5c49819f5396b3efd165ca297cc /ospfd/ospf_nsm.c | |
parent | Merge pull request #5309 from donaldsharp/install_nhg_kernel (diff) | |
download | frr-e6a22aeb420c2c54530da238b3ec595404a5956f.tar.xz frr-e6a22aeb420c2c54530da238b3ec595404a5956f.zip |
ospfd: Adding Debugs to dump OSPF DD Seqnumber
Recently Lot of issues are seen in OSPF adjacnecy establishements,
sessions was tear down because of DD Sequence Number mismatch.
adding Debugs to capture Master & slave generated sequence numbers.
Signed-off-by: Satheesh Kumar K <sathk@cumulusnetworks.com>
Diffstat (limited to 'ospfd/ospf_nsm.c')
-rw-r--r-- | ospfd/ospf_nsm.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ospfd/ospf_nsm.c b/ospfd/ospf_nsm.c index ee27ec094..00174b638 100644 --- a/ospfd/ospf_nsm.c +++ b/ospfd/ospf_nsm.c @@ -723,6 +723,13 @@ static void nsm_change_state(struct ospf_neighbor *nbr, int state) nbr->dd_flags = OSPF_DD_FLAG_I | OSPF_DD_FLAG_M | OSPF_DD_FLAG_MS; + if (CHECK_FLAG(oi->ospf->config, OSPF_LOG_ADJACENCY_DETAIL)) + zlog_info( + "%s: Intializing [DD]: %s with seqnum:%x , flags:%x", + (oi->ospf->name) ? oi->ospf->name + : VRF_DEFAULT_NAME, + inet_ntoa(nbr->router_id), nbr->dd_seqnum, + nbr->dd_flags); ospf_db_desc_send(nbr); } |