You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know this is a much older issue so may not be relevant to you anymore. However Python supports passing a key function to sorted. So you can simply do this:
Hello, how to find longest prefix with the same network?
Can cidr_merge will work?
[IPNetwork('10.0.2.0/25'), IPNetwork('10.0.0.0/23'), IPNetwork('10.0.2.0/23'), IPNetwork('10.0.4.0/22')]
desired output would like to have
[IPNetwork('10.0.0.0/23'), IPNetwork('10.0.2.0/23'), IPNetwork('10.0.4.0/22')]
The text was updated successfully, but these errors were encountered: