visualsubnetcalc icon indicating copy to clipboard operation
visualsubnetcalc copied to clipboard

Feature: Add bulk split/join

Open Justman100 opened this issue 7 months ago • 3 comments

Example: We have the network 159.69.0.0/21... Now I want to split this in all possible /24 subnets at once... Or in /23... /22...

Or we take 159.69.0.0/16 and want to split this in all possible /18, /19, /22 etc

Justman100 avatar May 19 '25 16:05 Justman100

How would this ideally look?

Idea:

  • You set 159.69.0.0/21 in the top bar and then go to Tools > Bulk Split.
  • It gives you a modal with a dropdown of possible split options, so you choose /24.
  • It splits every network larger than /24 into /24s, and leaves all smaller networks as-is?

You could conceivably do a bulk join as well, but in the current setup joined networks erase their contents if they differ (such as merging /18 "TestA" note with /18 "TestB" note into /17). If their colors/notes match then they are preserved, but if they differ it resets to white and no note. I could I guess apply the same logic here, so if you bulk joined everything to /24 but had a bunch of various network sizes under that they would all have to match contents (note/color), otherwise it would result in a blank /24.

ckabalan avatar May 19 '25 18:05 ckabalan

How would this ideally look?

Idea:

* You set `159.69.0.0/21` in the top bar and then go to Tools > Bulk Split.

* It gives you a modal with a dropdown of possible split options, so you choose `/24`.

* It splits every network larger than /24 into /24s, and leaves all smaller networks as-is?

Sounds good

You could conceivably do a bulk join as well, but in the current setup joined networks erase their contents if they differ (such as merging /18 "TestA" note with /18 "TestB" note into /17). If their colors/notes match then they are preserved, but if they differ it resets to white and no note. I could I guess apply the same logic here, so if you bulk joined everything to /24 but had a bunch of various network sizes under that they would all have to match contents (note/color), otherwise it would result in a blank /24.

Well, that's the way it has to be

Justman100 avatar May 19 '25 20:05 Justman100

@ckabalan And?

Justman100 avatar Aug 06 '25 15:08 Justman100