ubicloud/spec/prog/minio
Furkan Sahin 21d64a53dc Refactor ip4/6, ephemeral_net4/6 usages
The return types of ip4/6 and ephemeral_net4/6 were confusing:
- vm.ephemeral_net4: \#<NetAddr::IPv4:0x00007fcd2f360458 @addr=3156775770>
- vm.ephemeral_net6: \#<NetAddr::IPv6Net:0x00007fcd3431f4f8
 @base=
  #<NetAddr::IPv6:0x00007fcd3431f2f0
   @addr=55832868911356873841067313924744937472>,
 @m128=
  #<NetAddr::Mask128:0x00007fcd34304630
   @mask=340282366920938463463374044481814790144,
   @prefix_len=79>>
- vm.ip4: \#<NetAddr::IPv4Net:0x00007fcd2f3604a8
 @base=#<NetAddr::IPv4:0x00007fcd2f360458 @addr=3156775770>,
 @m32=#<NetAddr::Mask32:0x00007fcd2f3606d8 @mask=4294967295, @prefix_len=32>>
- vm.ip6: \#<NetAddr::IPv6:0x00007fcd3560b670 @addr=55832868911356873841067313924744937474>

So, ephemeral_net4 returns IPv4 while ephemeral_net6 returns IPv6Net
AND ip4 returns IPv4Net while ip6 returns IPv6.

This commit changes the returns types to be consistent.
With this commit:
- ip4 returns IPv4 and ip6 returns IPv6
- ephemeral_net4 returns IPv4Net and ephemeral_net6 returns IPv6Net

Furthermore, I am moving ephemeral_net4 to the private part because
essentially no code should use ephemeral_net4 except for the vm model
itself. Any other referring service must depend on ip4. Therefore, we
are also cleaning the codebase to depend purely on ip4.
2025-10-10 12:19:26 +02:00
..
minio_cluster_nexus_spec.rb Validate minio cluster information before use 2025-09-27 02:10:40 +09:00
minio_pool_nexus_spec.rb Change all create_with_id to create 2025-08-06 01:55:51 +09:00
minio_server_nexus_spec.rb Refactor ip4/6, ephemeral_net4/6 usages 2025-10-10 12:19:26 +02:00
setup_minio_spec.rb Set MinIO parity properly and upgrade the version 2025-09-04 11:24:46 +02:00