Skip to content

Commit

Permalink
isis: order IS neighbors state data by LAN ID
Browse files Browse the repository at this point in the history
Signed-off-by: Renato Westphal <[email protected]>
  • Loading branch information
rwestphal committed Jan 15, 2025
1 parent 81d71d7 commit 4a2b197
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions holo-isis/src/northbound/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#![allow(unreachable_code)]

use std::borrow::Cow;
use std::collections::HashSet;
use std::collections::BTreeSet;
use std::sync::{LazyLock as Lazy, atomic};

use enum_as_inner::EnumAsInner;
Expand Down Expand Up @@ -236,7 +236,7 @@ fn load_callbacks() -> Callbacks<Instance> {
.get_iterate(|_instance, args| {
let lse = args.parent_list_entry.as_lsp_entry().unwrap();
let lsp = &lse.data;
let iter = lsp.tlvs.is_reach().map(|reach| reach.neighbor).collect::<HashSet<_>>().into_iter().map(|neighbor| ListEntry::IsReach(lse, neighbor));
let iter = lsp.tlvs.is_reach().map(|reach| reach.neighbor).collect::<BTreeSet<_>>().into_iter().map(|neighbor| ListEntry::IsReach(lse, neighbor));
Some(Box::new(iter))
})
.get_object(|_instance, args| {
Expand Down

0 comments on commit 4a2b197

Please sign in to comment.