forked from TrueCloudLab/frostfs-node
[#1896] neofs-node: Set MAINTENANCE
status on update
Signed-off-by: Evgenii Stratonikov <evgeniy@morphbits.ru>
This commit is contained in:
parent
ade19077ee
commit
2050a623ac
1 changed files with 2 additions and 0 deletions
|
@ -62,6 +62,8 @@ func (s *networkState) setNodeInfo(ni *netmapSDK.NodeInfo) {
|
|||
ctrlNetSt = control.NetmapStatus_ONLINE
|
||||
case ni.IsOffline():
|
||||
ctrlNetSt = control.NetmapStatus_OFFLINE
|
||||
case ni.IsMaintenance():
|
||||
ctrlNetSt = control.NetmapStatus_MAINTENANCE
|
||||
}
|
||||
} else {
|
||||
ctrlNetSt = control.NetmapStatus_OFFLINE
|
||||
|
|
Loading…
Reference in a new issue