forked from TrueCloudLab/frostfs-node
[#1000] ir/nodeValidators: Ignore zero subnet validation
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
98f288c946
commit
5b8f195563
1 changed files with 6 additions and 0 deletions
|
@ -14,6 +14,12 @@ func (v *Validator) VerifyAndUpdate(n *netmap.NodeInfo) error {
|
||||||
prm := morphsubnet.NodeAllowedPrm{}
|
prm := morphsubnet.NodeAllowedPrm{}
|
||||||
|
|
||||||
err := n.IterateSubnets(func(id subnetid.ID) error {
|
err := n.IterateSubnets(func(id subnetid.ID) error {
|
||||||
|
// every node can be bootstrapped
|
||||||
|
// to the zero subnetwork
|
||||||
|
if subnetid.IsZero(id) {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
rawSubnetID, err := id.Marshal()
|
rawSubnetID, err := id.Marshal()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("could not marshal subnetwork ID: %w", err)
|
return fmt.Errorf("could not marshal subnetwork ID: %w", err)
|
||||||
|
|
Loading…
Reference in a new issue