Skip to content

Commit

Permalink
ospfv3: fix inverted logic in handling certain LSA origination events
Browse files Browse the repository at this point in the history
The handling of the `StubRouterChange` and `GrHelperChange`
LSA origination events was inverted, as evident from the code
comments. Fix this.

Signed-off-by: Renato Westphal <[email protected]>
  • Loading branch information
rwestphal committed Dec 6, 2023
1 parent 91019ab commit 74abb31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions holo-ospf/src/ospfv3/lsdb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -241,13 +241,13 @@ impl LsdbVersion<Self> for Ospfv3 {
LsaOriginateEvent::StubRouterChange => {
// (Re)originate Router-LSA(s) in all areas.
for area in arenas.areas.iter() {
lsa_orig_router_info(area, instance);
lsa_orig_router(area, instance, arenas);
}
}
LsaOriginateEvent::GrHelperChange => {
// (Re)originate Router Information LSA(s) in all areas.
for area in arenas.areas.iter() {
lsa_orig_router(area, instance, arenas);
lsa_orig_router_info(area, instance);
}
}
LsaOriginateEvent::SrEnableChange => {
Expand Down

0 comments on commit 74abb31

Please sign in to comment.