85 Commits

Author SHA256 Message Date
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
445988b795 Accepting request 837380 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/837380
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pynetbox?expand=0&rev=16
2020-10-02 15:34:00 +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
dff472a027 Accepting request 828875 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/828875
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pynetbox?expand=0&rev=15
2020-08-24 13:14:18 +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
7c33b2fdf9 Accepting request 821335 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/821335
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pynetbox?expand=0&rev=14
2020-07-17 18:48:36 +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
c22b249ecb Accepting request 819676 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/819676
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pynetbox?expand=0&rev=13
2020-07-09 11:20:20 +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
26cc4c5f24 Accepting request 817206 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/817206
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pynetbox?expand=0&rev=12
2020-06-26 19:49:31 +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
9e6347c35b Accepting request 787519 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/787519
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pynetbox?expand=0&rev=11
2020-03-24 21:34:27 +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
1963933e7c Accepting request 773367 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/773367
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pynetbox?expand=0&rev=10
2020-02-11 21:24:40 +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
3104923484 Accepting request 763521 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/763521
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pynetbox?expand=0&rev=9
2020-01-12 22:25:08 +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
6b0b2473cb Accepting request 755726 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/755726
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pynetbox?expand=0&rev=8
2019-12-11 11:13:52 +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
bf3574d267 Accepting request 751840 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/751840
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pynetbox?expand=0&rev=7
2019-12-02 10:28:51 +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
5afde22d47 Accepting request 750092 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/750092
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pynetbox?expand=0&rev=6
2019-11-22 09:27:13 +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
c7d79d9b5e Accepting request 749809 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/749809
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pynetbox?expand=0&rev=5
2019-11-20 09:29:47 +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
3b0faba53a Accepting request 749411 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/749411
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pynetbox?expand=0&rev=4
2019-11-19 11:59:16 +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
c62f58ebc9 Accepting request 749045 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/749045
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pynetbox?expand=0&rev=3
2019-11-17 18:23:02 +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
66d455268b Accepting request 733771 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/733771
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pynetbox?expand=0&rev=2
2019-09-30 13:59:16 +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
438a9cda4e Accepting request 731431 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/731431
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pynetbox?expand=0&rev=1
2019-09-27 12:49:00 +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