No description
|
|
||
|---|---|---|
| jobs | ||
| nautobot_jobs | ||
| __init__.py | ||
| pyproject.toml | ||
| README.md | ||
nautobot-jobs (MikroTik DHCP Sync, sched-enabled)
Git-based Jobs for Nautobot 3.x, providing a scheduled MikroTik DHCP sync job.
Layout
__init__.py— makes this repo importable as the Python package whose name is the repository slug (for examplenautobot_jobs_git).jobs/— top-level jobs package that Nautobot imports as<slug>.jobs.__init__.py— registersMikroTikDHCPJobusingregister_jobs().mikrotik_sync.py— main job implementation, now inheriting fromScheduledJobMixinso it can be scheduled via the Nautobot UI.
Usage
- Add this Git repository in Nautobot under Extensibility → Git Repositories.
- Set Provides to include Jobs.
- Click Update & Sync.
- Go to Extensibility → Jobs, enable
MikroTik DHCP Sync. - You should now see a Schedule option for this job (assuming RQ worker & scheduler are running), allowing you to configure periodic runs.