Skip to content

Commit

Permalink
add support for RD nexthops
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyuyureka committed Mar 13, 2024
1 parent 1692bc2 commit bf7d66c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,8 @@ pub trait Store: Clone + Send + Sync + 'static {
let nexthop = match updates.nexthop {
BgpAddr::V4(v4) => Some(IpAddr::from(v4)),
BgpAddr::V6(v6) => Some(IpAddr::from(v6)),
BgpAddr::V4RD(v4) => Some(IpAddr::from(v4.addr)),
BgpAddr::V6RD(v6) => Some(IpAddr::from(v6.addr)),
_ => None,
};
for net in bgp_addrs_to_nets(&updates.addrs) {
Expand Down

0 comments on commit bf7d66c

Please sign in to comment.