]> git.puffer.fish Git - mirror/frr.git/commit
ospfd: Fix RFC conformance test cases 25.19 and 27.6 12387/head
authorMobashshera Rasool <mrasool@vmware.com>
Tue, 15 Nov 2022 05:00:55 +0000 (21:00 -0800)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Thu, 24 Nov 2022 15:22:11 +0000 (15:22 +0000)
commitb2237bac834178971bfd6d60ac5c40f7cead21a1
tree5e9779c5801a13fa8abc04ba3e0cf69baed0a014
parent2a6176ac3a223f29ea6f40dedc186eb54da68c14
ospfd: Fix RFC conformance test cases 25.19 and 27.6

Steps to reproduce:
--------------------------
1. ANVL: Establish full adjacency with DUT for neighbor Rtr-0-A on DIface-0 with DUT as DR.
2. ANVL: Listen (for up to 2 * <RxmtInterval> seconds) on DIface-0.
3. DUT: Send <OSPF-LSU> packet.
4. ANVL: Verify that the received <OSPF-LSU> packet contains a Network- LSA for network N1
   originated by DUT, and the LS Sequence Number is set to <InitialSequenceNumber>.
5. ANVL: Establish full adjacency with DUT for neighbor Rtr-0-B on DIface-0 with DUT as DR.
6. ANVL: Listen (for up to 2 * <RxmtInterval> seconds) on DIface-0.
7. DUT: Send <OSPF-LSU> packet.
8. ANVL: Verify that the received <OSPF-LSU> packet contains a new instance of the
   Network-LSA for network N1 originated by DUT, and the LS Sequence Number
   is set to (<InitialSequenceNumber> + 1).

Both the test cases were failing while verifying the initial sequence number for network LSA.

This is because currently OSPF does not reset its LSA sequence number when it is going down.

Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
(cherry picked from commit ca5997cd018ec66534285130d02de168a3a4ed5c)
lib/libospf.h
ospfd/ospf_lsa.c