Comments (2)
Yeah, I'm seeing it as well. I think it's due to the fairly naive way pynetbox handles pagination and the MAX_PAGE_SIZE
(defaults to 1000) setting in NetBox. The way pagination works now is by making a request and looking for a next
field in the response. If it's not null, then we make a second request and populate the limit=
and offset=
fields with the total count and a sum of objects in first response respectively. The thinking was that you'd only ever make two requests, and if you were calling .all()
or a liberal .filter()
then you probably needed all the results anyways. That was before MAX_PAGE_SIZE
was a thing, and I get there's lots of scenarios where that might not be true as well. There's probably a good half dozen ways to do pagination. I'm open to ideas for a more sophisticated approach. Would prefer to not change the API too much, but if we have to, we can.
from pynetbox.
^ that should get around the limitation related to MAX_PAGE_SIZE
for now. I'll leave the issue open for a while if anyone wants to chime in on better ways to handle pagination.
from pynetbox.
Related Issues (20)
- I suspect that when filtering VLANS, the Exception is not Raised on an error message. HOT 2
- Incompatible Exception usage HOT 9
- Tests failing
- pynetbox import error importlib.metdata python3.6 HOT 3
- Add support for NetBox v3.6 HOT 1
- readthedocs doesn't show endpoints like DCIM
- Device object has no attribute "render_config" HOT 1
- Can't reset object attribute to its initial value.
- render_config tries wrong url when Netbox is behind reverse proxy HOT 1
- Choices are not returned when the API token can PUT but not POST on an endpoint HOT 4
- Keep getting Connection Reset HOT 2
- Add `vpn` app for NetBox 3.7 compatibility
- pynetbox greater than 7.0.0 fails to insert complex custom_fields HOT 1
- Add classifier and testing for Python 3.12 HOT 2
- object.update Not working for ip_Addresses HOT 1
- The limit key isn't reducing the number of results HOT 5
- Auth fails getting API version with Netbox 4.0.0 HOT 14
- Get filtering on non existent device_id raises RequestError when it should return None HOT 4
- Problem accesing rearports, seems endpoint url is wrong (should be rear-ports)
- Object update not working for custom fields HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pynetbox.