- (#173) Fixes for authentication change in Nautobot.
- (#163) Adds
Endpoint.delete
method for bulk deleting of records - (#165) Adds
Endpoint.update
method for bulk updating of records
- (#162) Corrects signature of
RODetailEndpoint.create
to provide a proper error that it is not implemented when usingapi_version
- (#148) Fixes missing
packages
dependency
- (#140) Fixes SSL
- (#141) Fixes methods and endpoints naming overlap
New release for nautobot 2.0
- (#135) - Docs Update
- (#134) - Updates in .choices due to changed
OPTIONS
schema - (#130) - Add version constraint on
__init__
to divide 1.X and 2.X.
Release Candidate. New release train for nautobot 2.X
- (#174) Fixes for authentication change in Nautobot.
- (#125) Adds Update Method based on ID to keep within the pynautobot experience to update a device (@jamesharr)
import os
from pynautobot import api
url = os.environ["NAUTOBOT_URL"]
token = os.environ["NAUTOBOT_TOKEN"]
nautobot = api(url=url, token=token)
# Update status and name fields
result = nautobot.dcim.devices.update(
id="491d799a-eeee-bbbb-aaaa-7c5cbb5b71b6",
data={
"comments": "removed from service",
"status": "decommissioned",
},
)
- (#56) Adds ability to execute a job via pynautobot
Run an instance of the job
# Gets the job from the list of all jobs
>>> gc_backup_job = nautobot.extras.jobs.all()[14]
>>> job_result = gc_backup_job.run()
>>> job_result.result.id
'1838f8bd-440f-434e-9f29-82b46549a31d' # <-- Job Result ID.
Running the job with inputs
job = nautobot.extras.jobs.all()[7]
job.run(data={"hostname_regex": ".*"})
- Updates
gitpython
to 3.1.30
- (#85) Added
retries
option to API
- (#94) Fixes API version key for updating records
- (#84) Fixes URLs for plugins with nested endpoints (i.e. /api/plugins/app_name/endpoint/nested_endpoint)
- (#76) Feature: Removing the restriction on
id
for filterIt is now allowed to filter per id. (switch = devices.get(id="..."))
- (#81) Development: Added two invoke tasks:
debug
to get the logs for Nautobot to the screenstop
to executedocker-compose down
for started containers
- (#71) Drops support for Python3.6 and updates package dependencies.
- (#75) Fixes child prefixes for the available-prefixes/ips endpoint.
- (#72) Updates to account for JSON Custom Field type introduced by Nautobot Custom Fields.
- (#57) - Revert wide spread changes introduced in (#41) to resolve
__str__
method for nat_inside and nat_outside objects. Updated primaryRecord.__str__
to use display and fallback to previous method.
(#43) Incorrect attribute (display_name) set for VirtualChassis in __str__
method of record. Changed to display.
(#44) Incorrect method signatures for new api_version
argument causing data to be set as api_version
.
(#46) Added assert_called_with() checks to several unit tests; various test refactoring
(#36) Add api_version argument [@timizuoebideri1]
(#28) Fix Contraints String Serialization [@david-kn]
(#19) Add extras model JobResults [@jmcgill298] (#14) Fixes writing to plugin endpoint [@Thetacz]
#8 Add string interpretation to extras.custom_field_choices endpoint (Fixes #7)
Initial Release