Skip to content
Discussion options

You must be logged in to vote

Figured it out, for people who will have the same problem:
Less and greater than should have prefixes:
{"address__lt": "192.168.1.255/24", "address__gte": "192.168.1.0/24"}
but that's not what You want to do, it doesn't show IP with 255 (less than..) and You cant enter value 256. :) I need this, as I enter broadcast addresses and flag them as such with custom status.
So in my case final answer is:
{"address__net_contained_or_equal": "192.168.1.0/24"}
or
[{"address__net_contained_or_equal": "192.168.1.0/24"}, {"address__net_contained_or_equal": "192.168.11.0/22"}]
for multiple nets.
I searched through some docs, answer I stambled upon earlier with only "address__net_contained" is maybe for…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by uRhaineWork
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant