14
0
Commit Graph

29 Commits

Author SHA256 Message Date
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
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