Skip to content

Commit

Permalink
graceful-restart: expose peer graceful restart state via API
Browse files Browse the repository at this point in the history
Exposing PeerRestartTime and PeerRestarting info in
config.NewPeerFromConfigStruct.

Signed-off-by: harsimran pabla <hpabla@isovalent.com>
  • Loading branch information
harsimran-pabla committed May 25, 2023
1 parent f8c6d24 commit 5719c6d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/pkg/config/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,8 @@ func NewPeerFromConfigStruct(pconf *Neighbor) *api.Peer {
NotificationEnabled: pconf.GracefulRestart.Config.NotificationEnabled,
LonglivedEnabled: pconf.GracefulRestart.Config.LongLivedEnabled,
LocalRestarting: pconf.GracefulRestart.State.LocalRestarting,
PeerRestartTime: uint32(pconf.GracefulRestart.State.PeerRestartTime),
PeerRestarting: pconf.GracefulRestart.State.PeerRestarting,
},
Transport: &api.Transport{
RemotePort: uint32(pconf.Transport.Config.RemotePort),
Expand Down

0 comments on commit 5719c6d

Please sign in to comment.