Skip to content

Commit

Permalink
bgpv1: do not supply empty control plane state
Browse files Browse the repository at this point in the history
This fixes an issue where an empty ControlPlaneState structure is
provided to NewServerWithConfig within the RouterManager.registerBGPServer
method.

Instead, continue passing the ControlPlaneState supplied by the caller
of registerBGPServer.

Signed-off-by: Louis DeLosSantos <[email protected]>
  • Loading branch information
ldelossa committed Jul 27, 2023
1 parent b1e6761 commit 8ecef5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/bgpv1/manager/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ func (m *BGPRouterManager) registerBGPServer(ctx context.Context, c *v2alpha1api
AdvertiseInactiveRoutes: true,
},
},
CState: &agent.ControlPlaneState{},
CState: cstate,
}

if s, err = NewServerWithConfig(ctx, globalConfig); err != nil {
Expand Down

0 comments on commit 8ecef5c

Please sign in to comment.