permissions Constraints - IP address range or subnet #9293
-
Hi, netbox 3.2.0, python 3.9.9 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Figured it out, for people who will have the same problem: |
Beta Was this translation helpful? Give feedback.
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…