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

Add IP addresses netmask discovery and visualization #2793

Merged
merged 8 commits into from
Jul 22, 2024

Conversation

arbulu89
Copy link
Contributor

@arbulu89 arbulu89 commented Jul 17, 2024

Description

Discover ip addresses netmask and implement visualization.
In order to not overload this small changes in the domain logic (which I have the gut feeling that at some point we will want to upgrade how we deal with network interfaces in general), i have added the logic in the projection itself.

This way, we simply serialize and deserialize ip address+netmask in the policy and projection (basically concat address with netmask).
And the domain and events stay untouched. At the end, changing events and domain is really sensitive, so if i can avoid with this little changes I prefer this way.
Maybe changing commands/events/domain is a bit cleaner though.

If you think we should include netmasks in the domain, we can of course, but again, I'm not entirely sure if this will be the last time we play with network interfaces...

Based on: trento-project/agent#346

How was this tested?

Tested with UT and e2e tests updated

@arbulu89 arbulu89 added the enhancement New feature or request label Jul 17, 2024
@arbulu89 arbulu89 force-pushed the add-netmask-ipaddresses branch from bd58081 to a37e533 Compare July 17, 2024 12:45
@arbulu89 arbulu89 added env Create an ephimeral environment for the pr branch regression Add this label to force the PR to run upcasting regression tests labels Jul 17, 2024
@arbulu89 arbulu89 force-pushed the add-netmask-ipaddresses branch from e60c181 to 569d1a0 Compare July 17, 2024 13:32
@arbulu89 arbulu89 marked this pull request as ready for review July 17, 2024 15:01
@arbulu89 arbulu89 requested review from CDimonaco and EMaksy July 17, 2024 15:07
@arbulu89 arbulu89 force-pushed the add-netmask-ipaddresses branch from dd0b24a to 80dd7bb Compare July 17, 2024 15:18
Copy link
Member

@EMaksy EMaksy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey man besides one nitpick everything fine 👍

Great job, it just amazes me how much change must happen to add CIDR notation xD

@arbulu89 arbulu89 merged commit a16f5f1 into main Jul 22, 2024
26 checks passed
@arbulu89 arbulu89 deleted the add-netmask-ipaddresses branch July 22, 2024 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request env Create an ephimeral environment for the pr branch regression Add this label to force the PR to run upcasting regression tests
Development

Successfully merging this pull request may close these issues.

3 participants