Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

data structure for network subnets #4

Open
3 of 6 tasks
medilies opened this issue Apr 21, 2023 · 1 comment
Open
3 of 6 tasks

data structure for network subnets #4

medilies opened this issue Apr 21, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@medilies
Copy link
Contributor

medilies commented Apr 21, 2023

should support

Map

  • adding (can be chained by auto sorting)
  • removing (can be chained by auto sorting if not last subnet)
  • sorting (Not optimal)
  • updating subnets sizes
  • repositioning subnets
  • merging subnets

until now Network addressing info are not updatable

@medilies medilies self-assigned this Apr 21, 2023
@medilies medilies added the enhancement New feature or request label Apr 21, 2023
@medilies
Copy link
Contributor Author

medilies commented May 25, 2023

  • Use map [ID => Subnet] to store child subnets
  • Use subnet CIDR address as ID
  • Use composition pattern to represent the general tree of subnets and child subnets and implement search interface

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: In Progress
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant