[#1896] neofs-node: Set MAINTENANCE status on update

Signed-off-by: Evgenii Stratonikov <evgeniy@morphbits.ru>
This commit is contained in:
Evgenii Stratonikov 2022-10-14 11:33:52 +03:00 committed by fyrchik
parent ade19077ee
commit 2050a623ac

View file

@ -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