]> git.puffer.fish Git - matthieu/frr.git/commit
ospf6d: Send Link LSAs when interface priority is changed
authorYash Ranjan <ranjany@vmware.com>
Fri, 9 Apr 2021 07:51:00 +0000 (00:51 -0700)
committerYash Ranjan <ranjany@vmware.com>
Sun, 2 May 2021 17:19:16 +0000 (10:19 -0700)
commit17ab36c6c4a48588b86b53a0d3670dd340517814
tree7059dbc8998bae760be38dd136f42c3b29bb2ef2
parent83187b82853d0bf905dacf4de93592f2207c35a6
ospf6d: Send Link LSAs when interface priority is changed

As per the ospfv3 conformance test 24.3

SETUP: Configure DIface-0 with priority set to <hprty>.
ANVL: Establish full adjacency with DUT for neighbor Rtr-0-A on DIface-0.
DUT: Exchange all the <OSPF-DD> packets, during adjacency establish- ment.
ANVL: Verify that the received <OSPF-DD> packets contain: • one header of Link-LSA, originated by DUT.
ANVL: Send <OSPF-LSR> packet from neighbor Rtr-0-A to DIface-0 con- taining:
• One Request Tuple for Link-LSA originated by DUT.
ANVL: Listen (for upto 2 * <RxmtInterval> seconds) on DIface-0. DUT: Send <OSPF-LSU> packet.
ANVL: Verify that the received <OSPF-LSU> packet contains:
• •
one Link-LSA, originated by DUT, contains: Rtr Pri field set to <hprty>.
----------
When interface priority is changed Link LSAs should be tranmitted
with the priority set.

When the link priorty chanages, the drbdr algorithm is called, which
can change the state of the interface. But if the state does not
changes then LINK LSAs are not transmitted.

This PR fixes this issue. If the state is changed, then LINK LSAs
will anyways be tranmitted. But in case the state is not changed,
even in that case Link LSAs are tranmitted.

Signed-off-by: Yash Ranjan <ranjany@vmware.com>
ospf6d/ospf6_interface.c