diff --git a/netmap/json_tests/subnet.json b/netmap/json_tests/subnet.json index fdefe1b4..ba3d1499 100644 --- a/netmap/json_tests/subnet.json +++ b/netmap/json_tests/subnet.json @@ -12,7 +12,7 @@ "value": "Paris" }, { - "key": "__NEOFS__SUBNET_0", + "key": "__SYSTEM__SUBNET_0", "value": "False" } ], @@ -42,7 +42,7 @@ "value": "London" }, { - "key": "__NEOFS__SUBNET_1", + "key": "__SYSTEM__SUBNET_1", "value": "True" } ], @@ -72,7 +72,7 @@ "value": "Toronto" }, { - "key": "__NEOFS__SUBNET_1", + "key": "__SYSTEM__SUBNET_1", "value": "True" } ], @@ -89,7 +89,7 @@ "value": "Toronto" }, { - "key": "__NEOFS__SUBNET_2", + "key": "__SYSTEM__SUBNET_2", "value": "True" } ], @@ -106,7 +106,7 @@ "value": "Tokyo" }, { - "key": "__NEOFS__SUBNET_2", + "key": "__SYSTEM__SUBNET_2", "value": "True" } ], @@ -123,7 +123,7 @@ "value": "Tokyo" }, { - "key": "__NEOFS__SUBNET_2", + "key": "__SYSTEM__SUBNET_2", "value": "True" } ], @@ -242,7 +242,7 @@ "filters": [ { "name": "F", - "key": "__NEOFS_SUBNET.2.ENABLED", + "key": "__SYSTEM__SUBNET.2.ENABLED", "op": "EQ", "value": "True" } diff --git a/netmap/node_info.go b/netmap/node_info.go index c56ffadc..4bf60f83 100644 --- a/netmap/node_info.go +++ b/netmap/node_info.go @@ -54,7 +54,7 @@ func (x *NodeInfo) readFromV2(m netmap.NodeInfo, checkFieldPresence bool) error return fmt.Errorf("duplicated attbiuted %s", key) } - const subnetPrefix = "__NEOFS__SUBNET_" + const subnetPrefix = "__SYSTEM__SUBNET_" switch { case key == attrCapacity: