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 support for CIDR collapsing in excluded_prefixes #1538

Open
d-uzlov opened this issue Oct 20, 2023 · 0 comments
Open

Add support for CIDR collapsing in excluded_prefixes #1538

d-uzlov opened this issue Oct 20, 2023 · 0 comments
Assignees

Comments

@d-uzlov
Copy link
Contributor

d-uzlov commented Oct 20, 2023

Overview

When running tests I noticed that excluded_prefixes list is unnecessary long.

There are a lot of /32 entries which could be covered by parent entries which are also included.

{
    "excluded_prefixes": [
        "10.100.0.1/32",
        "10.100.0.10/32",
        "10.100.34.238/32",
        "10.100.41.79/32",
        "10.100.52.128/32",
        "10.100.126.150/32",
        "10.100.136.187/32",
        "10.100.167.242/32",
        "10.100.223.27/32",
        "10.96.0.0/12",
        "192.168.0.0/16"
    ]
}

Here 10.96.0.0/12 specifies range 10.96.0.0 - 10.111.255.255, which includes all the 10.100.x.x entries.
It may be useful to add some mechanism to skip smaller prefixes that are covered by larger ones.

@d-uzlov d-uzlov changed the title Add support for CIRD collapsing in excluded_prefixes Add support for CIDR collapsing in excluded_prefixes Oct 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

3 participants