Skip to content

Commit

Permalink
fix flops value was not copied to api struct
Browse files Browse the repository at this point in the history
Signed-off-by: Kacper Kwaśny <kkwasny@akamai.com>
  • Loading branch information
kacpekwasny committed Jun 4, 2024
1 parent d4866ce commit 22e742c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/config/oc/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,7 @@ func NewPeerFromConfigStruct(pconf *Neighbor) *api.Peer {
RemoteCap: remoteCap,
LocalCap: localCap,
RouterId: s.RemoteRouterId,
Flops: s.Flops,
},
EbgpMultihop: &api.EbgpMultihop{
Enabled: pconf.EbgpMultihop.Config.Enabled,
Expand Down
1 change: 1 addition & 0 deletions pkg/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -872,6 +872,7 @@ func (s *BgpServer) toConfig(peer *peer, getAdvertised bool) *oc.Neighbor {
peer.fsm.lock.RLock()
conf.State.SessionState = oc.IntToSessionStateMap[int(peer.fsm.state)]
conf.State.AdminState = oc.IntToAdminStateMap[int(peer.fsm.adminState)]
conf.State.Flops = peer.fsm.pConf.State.Flops
state := peer.fsm.state
peer.fsm.lock.RUnlock()

Expand Down

0 comments on commit 22e742c

Please sign in to comment.