diff options
author | Satoshi Fujimoto <satoshi.fujimoto7@gmail.com> | 2018-05-30 15:14:50 +0900 |
---|---|---|
committer | Satoshi Fujimoto <satoshi.fujimoto7@gmail.com> | 2018-06-13 13:56:48 +0900 |
commit | 222bf4433d3c07a1490108e7b88028ec48c4ed5e (patch) | |
tree | 32796841cf43a7d738b3986b659be2c7993eb5fc /api/grpc_server.go | |
parent | abe2efc2bfdd0ea022ce0734803e870b2c23ce91 (diff) |
api: Add some fields to notify Graceful Restart state
Signed-off-by: Satoshi Fujimoto <satoshi.fujimoto7@gmail.com>
Diffstat (limited to 'api/grpc_server.go')
-rw-r--r-- | api/grpc_server.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/api/grpc_server.go b/api/grpc_server.go index 4e563491..48aa547e 100644 --- a/api/grpc_server.go +++ b/api/grpc_server.go @@ -337,6 +337,7 @@ func NewPeerFromConfigStruct(pconf *config.Neighbor) *Peer { DeferralTime: uint32(pconf.GracefulRestart.Config.DeferralTime), NotificationEnabled: pconf.GracefulRestart.Config.NotificationEnabled, LonglivedEnabled: pconf.GracefulRestart.Config.LongLivedEnabled, + LocalRestarting: pconf.GracefulRestart.State.LocalRestarting, }, Transport: &Transport{ RemotePort: uint32(pconf.Transport.Config.RemotePort), @@ -1295,6 +1296,7 @@ func NewNeighborFromAPIStruct(a *Peer) (*config.Neighbor, error) { pconf.GracefulRestart.Config.DeferralTime = uint16(a.GracefulRestart.DeferralTime) pconf.GracefulRestart.Config.NotificationEnabled = a.GracefulRestart.NotificationEnabled pconf.GracefulRestart.Config.LongLivedEnabled = a.GracefulRestart.LonglivedEnabled + pconf.GracefulRestart.State.LocalRestarting = a.GracefulRestart.LocalRestarting } ReadApplyPolicyFromAPIStruct(&pconf.ApplyPolicy, a.ApplyPolicy) if a.Transport != nil { |