From 6846e300e78895044645236c28e8e46c249e49d0 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Wed, 23 Jun 2021 14:53:21 +0300 Subject: [PATCH] [#160] netmap: Provide the ability to announce multiple addresses Make `address` field of `netmap.NodeInfo` message repeated (with corresponding renaming). Signed-off-by: Leonard Lyubich --- netmap/types.proto | 2 +- proto-docs/netmap.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/netmap/types.proto b/netmap/types.proto index 3f558e1..49ed573 100644 --- a/netmap/types.proto +++ b/netmap/types.proto @@ -127,7 +127,7 @@ message NodeInfo { bytes public_key = 1 [json_name = "publicKey"]; // Ways to connect to a node - string address = 2 [json_name = "address"]; + repeated string addresses = 2 [json_name = "addresses"]; // Administrator-defined Attributes of the NeoFS Storage Node. // diff --git a/proto-docs/netmap.md b/proto-docs/netmap.md index 6b2493c..a983bbd 100644 --- a/proto-docs/netmap.md +++ b/proto-docs/netmap.md @@ -218,7 +218,7 @@ NeoFS node description | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | | public_key | [bytes](#bytes) | | Public key of the NeoFS node in a binary format. | -| address | [string](#string) | | Ways to connect to a node | +| addresses | [string](#string) | repeated | Ways to connect to a node | | attributes | [NodeInfo.Attribute](#neo.fs.v2.netmap.NodeInfo.Attribute) | repeated | Carries list of the NeoFS node attributes in a key-value form. Key name must be a node-unique valid UTF-8 string. Value can't be empty. NodeInfo structures with duplicated attribute names or attributes with empty values will be considered invalid. | | state | [NodeInfo.State](#neo.fs.v2.netmap.NodeInfo.State) | | Carries state of the NeoFS node. |