Skip to content

Commit

Permalink
Comment out everything BasicNlri related
Browse files Browse the repository at this point in the history
  • Loading branch information
DRiKE committed Mar 22, 2024
1 parent e4190fa commit 15afa31
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions src/bgp/workshop/route.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,16 +171,6 @@ impl_workshop!(
//crate::bgp::message::update_builder::MpReachNlriBuilder
);

/*
impl<A, N: Clone + Hash + Debug> WorkshopAttribute<N> for crate::bgp::message::update_builder::MpReachNlriBuilder<A> {
fn store(local_attrs: Self, attrs: &mut PaMap) ->
Result<(), ComposeError> { attrs.set(local_attrs); Ok(()) }
fn retrieve(_attrs: &PaMap) ->
Option<Self> { None }
}
*/



//------------ WorkshopAttribute ---------------------------------------------

Expand Down Expand Up @@ -400,6 +390,8 @@ where
}


// XXX to be moved to roto
/*
pub fn pdu_into_rws_basic_iter<'a, Octs, R>(pdu: &'a UpdateMessage<Octs>)
-> impl Iterator<Item = RouteWorkshop<BasicNlri>> + '_
where
Expand All @@ -415,13 +407,12 @@ where
RouteWorkshop::from_pa_map(a.unwrap(), pa_map.clone())
))
}
*/




// TODO vec/iter for withdrawals, append to existing functions? or return
// tuple of (announcements, withdrawals) ?

// XXX to be moved to roto
/*
//------------ BasicNlri again ------------------------------------------------
use inetnum::addr::Prefix;
Expand Down Expand Up @@ -496,6 +487,8 @@ impl<O> TryFrom<Nlri<O>> for BasicNlri {
}
}
*/


#[allow(unused_imports)]
#[cfg(test)]
Expand Down Expand Up @@ -584,6 +577,8 @@ mod tests {
assert_eq!(pdu_into_rws_iter::<_, RouteWorkshop<_>, _>(&pdu).count(), 7);
}

//XXX to be moved to roto
/*
#[test]
fn pdu_into_rws_typed() {
Expand Down Expand Up @@ -674,6 +669,7 @@ mod tests {
}
*/


}

0 comments on commit 15afa31

Please sign in to comment.