Skip to content

Commit

Permalink
bgp: display correct error subcode in operational data
Browse files Browse the repository at this point in the history
Signed-off-by: Renato Westphal <[email protected]>
  • Loading branch information
rwestphal committed May 1, 2024
1 parent 39f3913 commit f171242
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion holo-bgp/src/northbound/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ fn load_callbacks() -> Callbacks<Instance> {
.path(bgp::neighbors::neighbor::errors::sent::last_error_subcode::PATH)
.get_element_u8(|_instance, args| {
let nbr = args.list_entry.as_neighbor().unwrap();
nbr.notification_sent.as_ref().map(|(_, notif)| notif.error_code)
nbr.notification_sent.as_ref().map(|(_, notif)| notif.error_subcode)
})
.path(bgp::neighbors::neighbor::errors::sent::last_error_data::PATH)
.get_element_binary(|_instance, args| {
Expand Down

0 comments on commit f171242

Please sign in to comment.