Skip to content

Commit 7b439a6

Browse files
committed
fix: temporary fix to bgp neigh update-source
The fix hard-codes the name of the loopback interface and should be replaced by a proper method that uses the information coming from the gRPC config model. Signed-off-by: Fredi Raspall <fredi@githedgehog.com>
1 parent 3bf3b1c commit 7b439a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mgmt/src/grpc/converter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ pub fn convert_bgp_neighbor(neighbor: &gateway_config::BgpNeighbor) -> Result<Bg
408408
// Create the neighbor config
409409
let neigh = BgpNeighbor::new_host(neighbor_addr)
410410
.set_remote_as(remote_as)
411-
.set_update_source_address(neighbor_addr)
411+
.set_update_source_interface("lo")
412412
.set_capabilities(BgpNeighCapabilities::default())
413413
.set_send_community(NeighSendCommunities::Both)
414414
.ipv4_unicast_activate(ipv4_unicast)

0 commit comments

Comments
 (0)