14
0

42 Commits

Author SHA256 Message Date
77af356bd5 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
6267a2b7d5 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
6d6187c786 - 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
6f242cf8a9 - 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
6895946820 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
10d4668285 - 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
87e8bc3987 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
5f819834a6 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
89d8a0c4d6 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
158a0c238c 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
0cd004f54c 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
9a2bfa2d70 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
e71787515b 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
b293c3cf9b 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
52b5b8e50b 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
6138fedc51 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
bb3544408e 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
e9aa791cff 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
da5f2c96d8 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
0099ccbb42 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
ce117fd297 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
373932c099 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
7d8a5488f4 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
645989e20f 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
e225942afb 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
1cdeb40565 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
38dd57c7ed 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
fcbe285ce5 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
c1351d4f4f 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
9ae2e9e971 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
eee8b7c019 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
787bfba9ec 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
d0f05a6056 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
89d9853d74 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
cf7e56ec98 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
7a1340bb33 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
df5107371d 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
6c0e7f5bf3 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
f5d6178415 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
87f460a32e 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
f03099abdd 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
7f092d4952 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