forked from TrueCloudLab/frostfs-api
[#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 <leonard@nspcc.ru>
This commit is contained in:
parent
030c59ccba
commit
6846e300e7
2 changed files with 2 additions and 2 deletions
|
@ -127,7 +127,7 @@ message NodeInfo {
|
||||||
bytes public_key = 1 [json_name = "publicKey"];
|
bytes public_key = 1 [json_name = "publicKey"];
|
||||||
|
|
||||||
// Ways to connect to a node
|
// 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.
|
// Administrator-defined Attributes of the NeoFS Storage Node.
|
||||||
//
|
//
|
||||||
|
|
|
@ -218,7 +218,7 @@ NeoFS node description
|
||||||
| Field | Type | Label | Description |
|
| Field | Type | Label | Description |
|
||||||
| ----- | ---- | ----- | ----------- |
|
| ----- | ---- | ----- | ----------- |
|
||||||
| public_key | [bytes](#bytes) | | Public key of the NeoFS node in a binary format. |
|
| 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. |
|
| 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. |
|
| state | [NodeInfo.State](#neo.fs.v2.netmap.NodeInfo.State) | | Carries state of the NeoFS node. |
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue