diff --git a/pkg/netmap/policy.go b/pkg/netmap/policy.go index 3a3e45a0..3ed5cc30 100644 --- a/pkg/netmap/policy.go +++ b/pkg/netmap/policy.go @@ -11,3 +11,11 @@ type Filter = netmap.Filter type Replica = netmap.Replica type Clause = netmap.Clause type Operation = netmap.Operation + +func PlacementPolicyToJSON(p *PlacementPolicy) ([]byte, error) { + return netmap.PlacementPolicyToJSON(p) +} + +func PlacementPolicyFromJSON(data []byte) (*PlacementPolicy, error) { + return netmap.PlacementPolicyFromJSON(data) +}