Skip to content

Releases: scaleway/python-netboxapi

v1.1.7

12 Feb 19:09
Compare
Choose a tag to compare

v1.1.7

  • Pop created and last_updated from the result when converting a mapper in dict.
  • Fixes mapper comparisons.

v1.1.5

21 Sep 18:22
Compare
Choose a tag to compare

v1.1.5

  • Avoid unecessary GET on each attribute when doing a PUT on a mapper

v1.1.4

05 Sep 16:32
Compare
Choose a tag to compare

v1.1.4

  • Recursive GET on the same object, to update it, used to break its route. It is now fixed

v1.1.2

03 Sep 11:56
Compare
Choose a tag to compare

v1.1.2

  • Transparently handle pagination.

v1.1.1

26 Jul 13:20
Compare
Choose a tag to compare

v1.1.1

  • Fix a wrong computed route when getting an id through mappers.

v1.1.0

05 Jul 22:43
9c7c11c
Compare
Choose a tag to compare

v1.1.0

  • Fix foreign keys behavior: now, when a foreign key is detected, the attribute will be transformed as a mapper targeting the foreign object. Black magic is done by using properties to fetch this object in a JIT way: accessing the attribute for the first time will trigger a request to fetch it, and put it in a local cache to avoid any new request for next accesses.

  • Fix serialization of netbox choices: when using put() on an object containing a netbox enum (or "choice"), the integer value will be cherry-picked from the dict, then sent to netbox. Not ideal for now, could be improved later, but at least works.

  • Handle specific cases when a mapper cannot be generated after a POST. Typically, a GET on /ipam/prefixes/{id}/available-prefixes/ returns objects without ID. It is now handled, and will return the json as received.

  • post() in mappers now handles mappers as foreign keys. Doing m.post(foo=bar) when bar is a NetboxMapper is now possible, and will automatically use its id.

Documentation will be added and updated relatively to these changes.

v1.1.0b1

03 Jun 22:37
a6a6975
Compare
Choose a tag to compare
v1.1.0b1 Pre-release
Pre-release

v1.1.0b1

  • Fix foreign keys behavior: now, when a foreign key is detected, the attribute will be transformed as a mapper targeting the foreign object. Black magic is done by using properties to fetch this object in a JIT way: accessing the attribute for the first time will trigger a request to fetch it, and put it in a local cache to avoid any new request for next accesses.

  • Fix serialization of netbox choices: when using put() on an object containing a netbox enum (or "choice"), the integer value will be cherry-picked from the dict, then sent to netbox. Not ideal for now, could be improved later, but at least works.

  • Handle specific cases when a mapper cannot be generated after a POST. Typically, a GET on /ipam/prefixes/{id}/available-prefixes/ returns objects without ID. It is now handled, and will return the json as received.

Documentation will be added and updated relatively to these changes.

v1.0.1

07 May 13:25
Compare
Choose a tag to compare

v1.0.1

  • Fix requests done by mappers
  • Use bumpversion for next releases

v1.0.0

07 Jun 08:25
Compare
Choose a tag to compare

v1.0.0

  • Fully compatible with Netbox 2.0 (GET, POST, PUT, DELETE for mappers)
  • Fix issues with URL schemas
  • Use routes for NetboxAPI requests instead of complete URL (break backward compatibility)
  • NetboxAPI url attribute now has to contain the entire URI of the netbox api (netbox.example.com/api) instead of only the TLD (netbox.example.com). It will be more flexible if netbox changes its API route (break backward compatibility)

v0.1.0

29 May 13:38
Compare
Choose a tag to compare

v0.1.0

Add token based authentication.