diff --git a/cmd/neofs-node/attributes.go b/cmd/neofs-node/attributes.go index 36990d6b7..d2a188334 100644 --- a/cmd/neofs-node/attributes.go +++ b/cmd/neofs-node/attributes.go @@ -46,10 +46,14 @@ type wellKnownNodeAttrDesc struct { defaultVal string } +// TODO: define attribute keys in API lib. +const attrKeyLocode = "UN-LOCODE" + func listWellKnownAttrDesc() map[string]wellKnownNodeAttrDesc { return map[string]wellKnownNodeAttrDesc{ netmap.PriceAttr: {defaultVal: strconv.FormatUint(defaultPrice, 10)}, netmap.CapacityAttr: {defaultVal: strconv.FormatUint(defaultCapacity, 10)}, + attrKeyLocode: {explicit: true}, } }