Filtering subnets in sections under API
phpipam open-source IP address management
Brought to you by:
myha
When filtering subnets from sections (api/portal/sections/8/subnets/?filter_by=description&filter_value=Something), the API will filter on the description of the Section then try to filter on the description of the Subnet. I feel this may be undesired (it was in my case, trying to pull a list lf subnets with a specific description in a section).
To work around this, in Sections.php, under function GET, if the id2 is set, I stored and cleard the filter params before the $this->GET() call and re-stored the values after the return from this call.
Thank you!
zendion@gmail.com
Anonymous
Also, thank you for this wonderful piece of software, it really is beautifully coded and designed.