Implemented route manager redistributing routes to peer handlers (not yet announcing to peers)
Some checks failed
Rust / build (push) Has been cancelled

This commit is contained in:
Rayhaan Jaufeerally
2024-08-18 18:42:37 +00:00
parent 0e45b96440
commit 173487b411
8 changed files with 322 additions and 148 deletions

View File

@ -19,7 +19,7 @@ use bgp_packet::path_attributes::PathAttribute;
use chrono::{DateTime, Utc};
use crate::rib_manager::PathData;
use crate::path::path_data::PathData;
/// RouteInfo encapsulates information received about a particular BGP route.
#[derive(Clone, Debug)]
@ -53,6 +53,8 @@ pub enum RouteUpdate {
#[derive(Debug)]
pub struct RouteWithdraw {
/// The peer identifier of the peer that sent the withdrawal.
pub peer_id: Ipv4Addr,
/// The prefixes which have been withdrawn.
pub prefixes: Vec<NLRI>,
}