Skip to content

Commit

Permalink
Leave the nexthop compability check on AfiSafiNlri for now
Browse files Browse the repository at this point in the history
  • Loading branch information
DRiKE committed Mar 26, 2024
1 parent 0b0bbf2 commit 8786965
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/bgp/nlri/afisafi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -493,9 +493,9 @@ pub trait IsNlri {
pub trait AfiSafiNlri: AfiSafi + IsNlri + Clone + Hash + Debug {
type Nlri;
fn nlri(&self) -> Self::Nlri;
fn allowed_next_hops(&self) -> impl Iterator<Item = AfiSafiType> {
[Self::afi_safi()].into_iter()
}

// TODO
//fn nexthop_compatible(&self, nh: &super::nexthop::NextHop) -> bool;
}

pub trait AfiSafiParse<'a, O, P>: Sized + IsNlri
Expand Down

0 comments on commit 8786965

Please sign in to comment.