We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 622daf4 commit 030f615Copy full SHA for 030f615
src/store.rs
@@ -310,7 +310,7 @@ pub trait Store: Clone + Send + Sync + 'static {
310
}
311
312
BgpAttrItem::NextHop(BgpNextHop { value }) => {
313
- nexthop = Some(value);
+ nexthop = Some(value.to_canonical());
314
315
BgpAttrItem::CommunityList(BgpCommunityList { value }) => {
316
let mut communities = vec![];
@@ -364,7 +364,7 @@ pub trait Store: Clone + Send + Sync + 'static {
364
rd = session.route_distinguisher
365
366
let mut attrs = attrs.clone();
367
- attrs.nexthop = nexthop;
+ attrs.nexthop = nexthop.map(|nh| nh.to_canonical());
368
self.update_route(
369
path,
370
prefix,
0 commit comments