From 876e132d2213e2f6458abcd00e5a3faa7e57c35a Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Mon, 19 Sep 2022 19:45:45 +0400 Subject: [PATCH] [#1680] cli/netmap: Print `MaintenanceModeAllowed` config After recent changes network configuration provided by NeoFS storage nodes contains `MaintenanceModeAllowed` flag. There is a need to support this value in NeoFS CLI application. Print `MaintenanceModeAllowed` flag in `netmap netinfo` command. Signed-off-by: Leonard Lyubich --- cmd/neofs-cli/modules/netmap/netinfo.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/neofs-cli/modules/netmap/netinfo.go b/cmd/neofs-cli/modules/netmap/netinfo.go index a3cf04adc..6999aa3df 100644 --- a/cmd/neofs-cli/modules/netmap/netinfo.go +++ b/cmd/neofs-cli/modules/netmap/netinfo.go @@ -48,6 +48,7 @@ var netInfoCmd = &cobra.Command{ cmd.Printf(format, "Maximum object size", netInfo.MaxObjectSize()) cmd.Printf(format, "Withdrawal fee", netInfo.WithdrawalFee()) cmd.Printf(format, "Homomorphic hashing disabled", netInfo.HomomorphicHashingDisabled()) + cmd.Printf(format, "Maintenance mode allowed", netInfo.MaintenanceModeAllowed()) cmd.Println("NeoFS network configuration (other)") netInfo.IterateRawNetworkParameters(func(name string, value []byte) {