44 Commits

Author SHA256 Message Date
b53a7d06af Accepting request 1330691 from home:mnhauke:network:automation
- Update to version 7.6.1
  Enhancements
  * Use dict instead of OrderedDict in Record serialization.
  New Features
  * Add cable path tracing support for front ports, rear ports,
    and virtual circuit terminations.
  Bug Fixes
  * Update internal object state after save operations to prevent
    attribute reset issues.

OBS-URL: https://build.opensuse.org/request/show/1330691
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pynetbox?expand=0&rev=79
2026-02-04 13:42:18 +00:00
cbda08874c Accepting request 1326499 from home:mnhauke:network:automation
- Update to version 7.6.0
  Breaking Changes
  * Moved ObjectChange to core for NetBox 4.1.0 compatibility.
  New Features
  * Added support for v2 Tokens introduced in NetBox 4.5.0.
  Enhancements
  * Add SVG support for Rack Elevation endpoint.
  Bugfixes
  * Add token when getting NetBox version to prevent 403 error.

OBS-URL: https://build.opensuse.org/request/show/1326499
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pynetbox?expand=0&rev=77
2026-01-12 10:11:20 +00:00
dc6bb82fc7 Accepting request 1279539 from home:mnhauke:network:automation
- Update to version 7.5.0
  * Return correct choices when API token can PUT but not POST.
  * When using OIDC proxy for authentication return correct
    nb.version property.
  * Add CircuitTerminations, ConsolePorts, ConsoleServerPorts,
    PowerOutlets, PowerPorts to trace of circuit.

OBS-URL: https://build.opensuse.org/request/show/1279539
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pynetbox?expand=0&rev=75
2025-05-26 08:23:41 +00:00
e5369bed72 Accepting request 1224460 from home:glaubitz:branches:devel:languages:python
- Update to 7.4.1
  * Updated requests and urllib3 python libraries due to
    security vulnerabilities

OBS-URL: https://build.opensuse.org/request/show/1224460
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pynetbox?expand=0&rev=73
2024-11-16 08:49:37 +00:00
e831756699 - update to 7.4.0:
* Fix: pynetbox greater than 7.0.0 fails to insert complex
    custom_fields. Fixes #597
  * Fix: replace None with 'null' in query parameters.
  * Fix: Fixes for connected endpoints.
  * Added first support for NetBox 4.0
  * Removed python 3.8, 3.9 from testing matrix, added python
    3.12
  * Removed NetBox 3.4, 3.5 from testing matrix, added NetBox 4.0
  * Added readme compatibility matrix.
- update to 7.3.4:
  * Fix API version for Netbox version > 4.x
  * Fix linter errors

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pynetbox?expand=0&rev=71
2024-08-18 17:25:04 +00:00
81bb017c63 - update to 7.3.3:
* fix pypi release
- update to 7.3.0:
  * Add support for NetBox v3.7 by @markkuleinio #596
  * Updated test suite by @abhi1693
- Update to version 6.6.2
    from NetBox 2.7
  * Fixes infinite loop when filtering with paginated results.
    turned into Record objects instead of

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pynetbox?expand=0&rev=69
2024-01-07 22:05:29 +00:00
2565fd3508 Accepting request 1109577 from home:mnhauke:network:automation
- Update to version 7.2.0
  * Add support for NetBox v3.6.

OBS-URL: https://build.opensuse.org/request/show/1109577
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pynetbox?expand=0&rev=67
2023-09-07 22:18:04 +00:00
13f47ca729 - Clean up the SPEC file
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pynetbox?expand=0&rev=65
2023-08-30 09:18:57 +00:00
5417cb1613 Accepting request 1107972 from home:mnhauke:network:automation
- Update to version 7.1.0
  * Add support for NetBox v3.5.

OBS-URL: https://build.opensuse.org/request/show/1107972
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pynetbox?expand=0&rev=64
2023-08-30 09:12:45 +00:00
16ede8fb00 Accepting request 1060531 from home:mnhauke:network:automation
- Update to version 7.0.1
  * Removed pre-NetBox 3.3 features.
  * Fix custom_filed KeyError traceback.

OBS-URL: https://build.opensuse.org/request/show/1060531
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pynetbox?expand=0&rev=62
2023-01-24 08:26:59 +00:00
453a5a9b8a Accepting request 1042442 from home:pgajdos:python
- python-six is not required

OBS-URL: https://build.opensuse.org/request/show/1042442
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pynetbox?expand=0&rev=60
2022-12-12 21:00:43 +00:00
0455434b6f Accepting request 1042030 from home:mnhauke:network:automation
- Update to version 7.0.0
  BREAKING CHANGE
  * Due to changes for a_terminations, b_terminations this version
    only supports NetBox 3.3 and later.
  Changes
  * Enable available_ips for ip_ranges.
  * Remove all Python2 related code.
  * Do not skip plugins in endpoint URLs.
  * Fix pickling exception with custom errors.
  * Support NetBox 3.3 cabling models (breaking change).

OBS-URL: https://build.opensuse.org/request/show/1042030
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pynetbox?expand=0&rev=58
2022-12-11 14:10:00 +00:00
045bb2c1d9 Accepting request 1008226 from home:yarunachalam:branches:devel:languages:python
- Update to version 6.6.2 
  * ci: test against the currently supported python versions by @raddessi in #446
    Fix pickling exception with custom errors by @kingtong in #459

OBS-URL: https://build.opensuse.org/request/show/1008226
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pynetbox?expand=0&rev=56
2022-10-06 08:58:33 +00:00
3259df261b Accepting request 967424 from home:pgajdos:python
- python-mock is not required for build

OBS-URL: https://build.opensuse.org/request/show/967424
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pynetbox?expand=0&rev=54
2022-04-07 09:35:59 +00:00
9c565d3108 Accepting request 957442 from home:mnhauke:network:automation
- Update to version 6.6.1
  * Use devices as variable for example calls to nb.dcim.devices.
  * Fixes #447: Remove extra self argument in Vlans.str().
- Update to version 6.6.0
  * Upgrade Black to the first non-beta release.
  * Fix VirtualChassis.__str__(), make VirtualChassis.master a
    Devices object.
- Update to version 6.5.0
  * Docstring updates: remove secrets from examples.
  * Fixes #427: Adds support for available-vlans child endpoint
    for VLAN groups.

OBS-URL: https://build.opensuse.org/request/show/957442
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pynetbox?expand=0&rev=53
2022-02-25 23:12:24 +00:00
2deb3859ab Accepting request 942745 from home:mnhauke:network:automation
- Update to version 6.4.1
  * Adds support for HTTP 409 when allocation is unsuccessful.
  * Set ObjectChanges.postchange_data and .prechange_data to
    JsonField.
- Update to version 6.4.0
  * Use display field in Record.__str__() to support future models
  * Update docstrings for DetailEndpoint and Prefixes.available_*
  * Add wireless app (for NetBox 3.1+)

OBS-URL: https://build.opensuse.org/request/show/942745
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pynetbox?expand=0&rev=52
2021-12-29 00:04:14 +00:00
117b299fc7 Accepting request 935798 from home:mnhauke:network:automation
- Update to version 6.3.0
  * Handle list results in DetailEndpoint.create().
  * Define Permissions.constraints as JSON field to fix #398.
  * Fixes manual pagination (#412) and argless filter.
  * Makes .filter() with no args equivalent to .all(), 7.0 will
    remove the latter.
  * Add Api.create_token() (for NetBox 3.0+)
  * Add custom model name lookup to fix.

OBS-URL: https://build.opensuse.org/request/show/935798
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pynetbox?expand=0&rev=51
2021-12-05 20:34:21 +00:00
90f51db01a Accepting request 928359 from home:mnhauke:network:automation
- Update to version 6.2.0
  * Fixes bulk update/delete on both Endpoint and RecordSet.

OBS-URL: https://build.opensuse.org/request/show/928359
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pynetbox?expand=0&rev=50
2021-10-31 22:33:53 +00:00
05bc3c03c4 Accepting request 909593 from home:mnhauke:network:automation
- Update to version 6.1.3
  * Adds dash-separated plugin endpoint name support
- Do not longer build for python2 (upsteam dropped support).

OBS-URL: https://build.opensuse.org/request/show/909593
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pynetbox?expand=0&rev=49
2021-08-02 12:38:31 +00:00
f69dc372bb Accepting request 885971 from home:mnhauke:network:automation
- Update to version 6.1.2
  * Fixes issue giving Endpoint.create() a list of dicts.

OBS-URL: https://build.opensuse.org/request/show/885971
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pynetbox?expand=0&rev=47
2021-04-17 13:34:33 +00:00
1f61f5a919 Accepting request 884014 from home:mnhauke:network:automation
- Update to version 6.1.1
  * Fixes issue with duplicate returns when threading is enabled.
  * Fixes updates to config_context data.
  * Re-implements ValueError from Endpoint.get() when used with
    kwargs and more than one result is found.
- Update to version 6.1.0
  * Adds a __next__ method to RecordSet objects.
- Update to version 6.0.2
  * Fix len() calls for empty RecordSet.

OBS-URL: https://build.opensuse.org/request/show/884014
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pynetbox?expand=0&rev=45
2021-04-09 14:00:13 +00:00
d80cf0cd8e Accepting request 883644 from home:mnhauke:network:automation
- Update to version 6.0.1
  * Fixes broken DetailEndpoint.list().
- Update to version 6.0.0
  * BREAKING CHANGE Endpoint.all() and .filter() no longer return
    lists, instead they return a ReturnSet object now. Iterating
    over this object calls a generator which steps through
    paginated results now as-needed.
  * Endpoint.all() and .filter() now accept a limit kwarg that
    controls the page size of paginated results.
  * Fixes issue pickling responses from Endpoint.all() and
    `.filter().
  * Implemented integration tests against four previous major
    NetBox releases.
  * Ends python 2 support.

OBS-URL: https://build.opensuse.org/request/show/883644
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pynetbox?expand=0&rev=43
2021-04-07 20:06:09 +00:00
08d94a1241 Accepting request 860342 from home:mnhauke:network:automation
- Update to version 5.3.0
  * Improves on Record._endpoint_from_url()'s path parsing to
    avoid URL format issues.

OBS-URL: https://build.opensuse.org/request/show/860342
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pynetbox?expand=0&rev=41
2021-01-05 10:03:34 +00:00
01b94b2732 Accepting request 859460 from home:mnhauke:network:automation
- Update to version 5.2.1
  * fix tests

- Update to version 5.2.0
  * Adds support for the /dcim/interfaces/:id/trace endpoint via
    the .trace() method on an interface record.
  * Add support for /api/users/ endpoints in NetBox 2.9+.
    Add Api.status() to be used with NetBox 2.10.0+.

OBS-URL: https://build.opensuse.org/request/show/859460
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pynetbox?expand=0&rev=39
2020-12-30 18:49:05 +00:00
7396a8156b Accepting request 858780 from home:mnhauke:network:automation
- Update to version 5.1.2
  * Fixes issue saving tags on NetBox 2.9+ instances (#311)

OBS-URL: https://build.opensuse.org/request/show/858780
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pynetbox?expand=0&rev=37
2020-12-27 22:26:27 +00:00
afcf4ae21f Accepting request 856070 from home:mnhauke:network:automation
- Update to version 5.1.1
  * Fixes bug with where URL was mangled calling .save()

OBS-URL: https://build.opensuse.org/request/show/856070
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pynetbox?expand=0&rev=35
2020-12-16 09:23:20 +00:00
Tomáš Chvátal
6cf59e85d8 Accepting request 837217 from home:mnhauke:network:automation
- Update to version 5.1.0
  * Add Basic plugins support (#290).

OBS-URL: https://build.opensuse.org/request/show/837217
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pynetbox?expand=0&rev=33
2020-09-25 10:25:47 +00:00
Tomáš Chvátal
ef2a5ee11a Accepting request 831347 from home:mnhauke:network:automation
- Update to version 5.0.8
  * Fixes malformed URL when calling .save() and .delete() on
    nested objects.

OBS-URL: https://build.opensuse.org/request/show/831347
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pynetbox?expand=0&rev=32
2020-09-02 07:01:26 +00:00
Tomáš Chvátal
f3bf1eb9dc Accepting request 828738 from home:mnhauke:network:automation
- Update to version 5.0.7
  * Implement Record.__getitem__()
- Update to version 5.0.6
  * Fixes issue when calling attributes by their dict keys where
    we only returned the key's name instead of its value.

OBS-URL: https://build.opensuse.org/request/show/828738
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pynetbox?expand=0&rev=30
2020-08-24 08:48:46 +00:00
Tomáš Chvátal
f25d077971 Accepting request 821330 from home:mnhauke:network:automation
- Update to version 5.0.5
  * Fixes issue with unchanged tags being reordered when .save()
    is called that caused unnecessary updates to NetBox.

OBS-URL: https://build.opensuse.org/request/show/821330
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pynetbox?expand=0&rev=28
2020-07-16 15:46:55 +00:00
Tomáš Chvátal
2ffe6a47bc Accepting request 819513 from home:mnhauke:network:automation
- Update to version 5.0.4
  * Fixes issue saving local_config_context attribute on objects

OBS-URL: https://build.opensuse.org/request/show/819513
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pynetbox?expand=0&rev=26
2020-07-09 06:46:45 +00:00
Tomáš Chvátal
c33b264f13 Accepting request 819059 from home:mnhauke:network:automation
- Update to version 5.0.3
  * Fixes issue with threads overwriting Request.filters.

- Udpate to version 5.0.2
  * Fixes Api.get_version() to use the session object.

OBS-URL: https://build.opensuse.org/request/show/819059
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pynetbox?expand=0&rev=25
2020-07-07 07:41:21 +00:00
Tomáš Chvátal
268d79986b Accepting request 817204 from home:mnhauke:network:automation
- Update to version 5.0.1
  * Fixes #240 by adding an Api.openapi() method that returns a
    dictionary of the entire OpenAPI spec.
  Breaking Changes
  * Fixes #239, #229, #219, #209, #189, and #166 by allowing
    Api.http_session to be overridden by user-supplied custom
    requests.Session() objects to more precisely control certain
    requests behavior. While this was possible before, it wasn't
    applied to all requests. For example, getting session keys
    was done in Api().__init__() which wouldn't respect a custom
    http_session. This behavior has been changed and will now
    only occur when the secrets endpoint is called.
  * Note: this change removes the ssl_verify kwarg passed to
    .api() that controlled certificate validation in previous
    versions. Please see the docs for the new method.
  * Fixes #241 where the same objects failed equality tests if one
    was derived from a nested object vs directly from that endpoint
  * Fixes an inconsistency noted in #224 by making Endpoint.get()
    and Endpoint.filter() behave similarly (return None) when the
    resource isn't found.
  * Fixes #144 by returning proper objects from .create() on detail
    endpoint routes like available-ips and available-prefixes.

- Use github source URL
- Update to version 4.3.2
  * Adds support for the rack elevation endpoint in NetBox 2.8
- Update to version 4.3.1
  * Makes config_contex on virtualization record objects a
    JsonField.

OBS-URL: https://build.opensuse.org/request/show/817204
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pynetbox?expand=0&rev=23
2020-06-26 08:15:52 +00:00
Tomáš Chvátal
b8743a4128 Accepting request 787513 from home:pgajdos:python
- version update to 4.3.0
  * Adds the ability to thread calls to NetBox from .filter() and .all() methods. (PR #216)

OBS-URL: https://build.opensuse.org/request/show/787513
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pynetbox?expand=0&rev=21
2020-03-23 15:00:15 +00:00
Tomáš Chvátal
c642791597 Accepting request 773350 from home:mnhauke:network:automation
- Update to version 4.2.5
  * save() is not idempotent when dealing with choice objects
    from NetBox 2.7

OBS-URL: https://build.opensuse.org/request/show/773350
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pynetbox?expand=0&rev=19
2020-02-11 07:27:34 +00:00
d039a8902b Accepting request 763513 from home:mnhauke:network:automation
- Update to version 4.2.4
  * Fixes Nested Record Write methods

OBS-URL: https://build.opensuse.org/request/show/763513
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pynetbox?expand=0&rev=17
2020-01-12 09:59:39 +00:00
Tomáš Chvátal
54da2cd21b Accepting request 755657 from home:mnhauke:network:automation
- Update to version 4.2.2
  * Fixes issues with hashing Record objects by adding name
    attribute to Endpoint and __eq__ method to Record objects to
    facilitate comparison.

OBS-URL: https://build.opensuse.org/request/show/755657
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pynetbox?expand=0&rev=15
2019-12-11 07:11:33 +00:00
Tomáš Chvátal
eff36fef0f Accepting request 751183 from home:mnhauke:network:automation
- Update to version 4.2.1
  * Fixes infinite loop when filtering with paginated results.

OBS-URL: https://build.opensuse.org/request/show/751183
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pynetbox?expand=0&rev=13
2019-11-29 09:47:07 +00:00
Tomáš Chvátal
7e4f776bc4 Accepting request 750004 from home:mnhauke:network:automation
- Update to version 4.2.0
  * Fix discrepancy in DetailEndpoint.create() and the docs where
    calling w/o arguments resulted in an exception.
  * Add method to return custom choices.

OBS-URL: https://build.opensuse.org/request/show/750004
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pynetbox?expand=0&rev=11
2019-11-21 12:13:01 +00:00
Tomáš Chvátal
b21a822f08 Accepting request 749693 from home:mnhauke:network:automation
- Update to version 4.1.2
  * Fixes URL in get_session_key

OBS-URL: https://build.opensuse.org/request/show/749693
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pynetbox?expand=0&rev=9
2019-11-20 06:21:42 +00:00
Tomáš Chvátal
d17a8d7940 Accepting request 749365 from home:mnhauke:network:automation
- Update to version 4.1.1
  * Fix Endpoint.choices() by assigning http_session.

OBS-URL: https://build.opensuse.org/request/show/749365
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pynetbox?expand=0&rev=7
2019-11-19 05:48:11 +00:00
Tomáš Chvátal
0ea2ec4657 Accepting request 749039 from home:mnhauke:network:automation
- Update to version 4.1.0
  * Makes use of session in requests
  * Adds Api.version property to query the NetBox version
  * Adds .choices() method to endpoint objects that utilizes DRF's
    OPTIONS method for discovering available choices for fields
    that use it. This method will eventually replace App.choices()
    when NetBox retires the /_choices endpoint.
  * Adds count() method to Endpoint object.
  * Use requests params to form URL parameters.
  * Creates a custom model for ChangeObjects and sets its __str__
    to request_id.
  * Implements __hash__ method on Record.
  * Implements JsonField object.
  * Adds local_context_data field to device model as dict.

OBS-URL: https://build.opensuse.org/request/show/749039
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pynetbox?expand=0&rev=5
2019-11-16 12:59:48 +00:00
Tomáš Chvátal
717ece1ce0 Accepting request 733766 from home:mnhauke:network:automation
- Update to version 4.0.8
  * Returns ContentError when 2XX response but not JSON.

OBS-URL: https://build.opensuse.org/request/show/733766
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pynetbox?expand=0&rev=3
2019-09-28 05:51:36 +00:00
Tomáš Chvátal
d4786e3e34 Accepting request 731361 from home:mnhauke
Initial package for python-pynetbox

OBS-URL: https://build.opensuse.org/request/show/731361
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pynetbox?expand=0&rev=1
2019-09-17 08:43:36 +00:00