Commit Graph

  • 9aae04476b Update README.md on incorrect custom field usage for Zabbix inventory documentation-fix Raymond Kuiper 2026-03-20 20:06:02 +01:00
  • 0663845c02 Merge pull request #179 from retigra/bug/fix_site_extension develop Raymond Kuiper 2026-03-13 14:14:02 +01:00
  • 66eba32439 revert workaround Raymond Kuiper 2026-03-13 14:11:46 +01:00
  • 0b456bfc18 Added mock record class Wouter de Bruijn 2026-03-13 14:09:50 +01:00
  • 9492f1b76a Workaround for failing tests Raymond Kuiper 2026-03-13 13:53:43 +01:00
  • 454f8b81cd improved formatting Raymond Kuiper 2026-03-12 18:16:04 +01:00
  • b2700dcd84 improved site extension and added debug output to help troubleshoot mapping issues. Raymond Kuiper 2026-03-12 18:01:34 +01:00
  • fe1b6eb851 Merge pull request #174 from TheNetworkGuy/bug/version 4.0.1-beta.1 Twan Kamans 2026-02-27 19:16:45 +01:00
  • d0edc38384 Fixed incorrect version TheNetworkGuy 2026-02-27 19:14:33 +01:00
  • a66262b829 Merge pull request #170 from TheNetworkGuy/feature/#169 Twan Kamans 2026-02-27 16:55:32 +01:00
  • da17b7be7d Merge pull request #173 from TheNetworkGuy/develop main 4.0.0 Twan Kamans 2026-02-27 16:44:01 +01:00
  • 4b54d93c6f Merge pull request #172 from TheNetworkGuy/bug/config-file-path Twan Kamans 2026-02-27 15:47:16 +01:00
  • 8073cae46a 🔥 Removed special case option because of unlikely scenario Wouter de Bruijn 2026-02-27 15:36:39 +01:00
  • 9da113ac60 🚧 Added check for reading config file from netbox-zabbix-sync.py as root dir Wouter de Bruijn 2026-02-27 13:43:56 +01:00
  • 473dd1dcc1 🐛 Updated script_dir path for new netbox_zabbix_sync parent folder Wouter de Bruijn 2026-02-27 13:43:18 +01:00
  • 14e68c34ea 🐛 Changed end of line to LF Wouter de Bruijn 2026-02-27 13:42:31 +01:00
  • a0a517a944 Added tests for _combine_filters() function. TheNetworkGuy 2026-02-26 10:27:53 +00:00
  • e90b50d4a0 Moved logout to CLI, added logout function to core, added override filter for device and VM for #169 TheNetworkGuy 2026-02-26 11:12:24 +01:00
  • 4d8cd6a81d Merge pull request #166 from TheNetworkGuy/feature/PIPreperations 3.4.0-beta.2 Twan Kamans 2026-02-25 14:34:02 +01:00
  • 0874bc9275 🔥 Removed load_config method Wouter de Bruijn 2026-02-25 14:21:32 +01:00
  • 4d0c2a42e2 🔥 Removed _config method Wouter de Bruijn 2026-02-25 14:20:25 +01:00
  • d4f1a2a572 Added #112 TheNetworkGuy 2026-02-25 12:55:50 +00:00
  • f6b23b4bcd Adds #151 TheNetworkGuy 2026-02-25 09:13:18 +00:00
  • e7de68c7c3 Fixes #152 TheNetworkGuy 2026-02-25 09:08:08 +00:00
  • 0a37ff491c Changed order of printing Netbox version. It makes sense to print it when a succesfull session with authentication is present. This fixes a bug where the version is printed even though the token might be invalid which might cause confusion. TheNetworkGuy 2026-02-25 09:05:21 +01:00
  • 9ec8bb3c2c Fixed some Ruff linting and modified the error message for start function without a proper netbox / zabbix connection. TheNetworkGuy 2026-02-23 13:49:11 +00:00
  • 7b83d768d0 Modified error message for sync function that does not have a valid netbox or zabbix connection. TheNetworkGuy 2026-02-23 13:46:35 +00:00
  • ed63c3e33b Added missing function to testing suite which was deleted in a previous commit. TheNetworkGuy 2026-02-23 13:17:32 +00:00
  • b7b399444c Replaced raise with return False statement and added return True at the end of the function. TheNetworkGuy 2026-02-23 14:04:56 +01:00
  • 0b92586057 Removed unused code for testing UserMacroSync logic that contained a raise exception. TheNetworkGuy 2026-02-23 14:00:13 +01:00
  • dc0a1f9122 Modified logging messages which contain device / VM and renamed this for consistent logging to "Host". Moved logging function from global to main() for CLI TheNetworkGuy 2026-02-23 13:46:53 +01:00
  • e3487378c1 Fixed check for future Zabbix versions. TheNetworkGuy 2026-02-23 13:28:43 +01:00
  • 449704156c Added debug line for showing Zabbix version and modified check for Zabbix versions above 6.x.x for proxy configuration TheNetworkGuy 2026-02-23 13:23:27 +01:00
  • 489a70b703 Modified API call to sites.all for testing the API connection to devices.count. TheNetworkGuy 2026-02-23 13:15:15 +01:00
  • 4185aaba24 Made the token checks more consistent with function variables and updated the tests to better reflect the use of a proper V2 token. TheNetworkGuy 2026-02-23 11:59:13 +00:00
  • a29f51f314 Updated and simplified Netbox token testing TheNetworkGuy 2026-02-23 11:39:25 +00:00
  • 08519c7433 Added Netbox token check to support #159 TheNetworkGuy 2026-02-23 11:33:15 +00:00
  • 7cfed2ec76 Added warning message for Token v2 with Netbox 4.5 or higher. This is according to Netbox recommendations and to warn our users. TheNetworkGuy 2026-02-23 10:35:41 +00:00
  • d5e3199e92 Implemented central configuration and config path that is configurable as path. Updated tests to use self.config instead on re-initializing config. TheNetworkGuy 2026-02-19 16:17:58 +00:00
  • f7d0989320 Added check for when a non-primary cluster member is synced TheNetworkGuy 2026-02-19 13:04:32 +00:00
  • 3be3cdc8ef Fixed Ruff linting TheNetworkGuy 2026-02-19 12:40:50 +00:00
  • a4d5fda5e3 Added VM tests and tag tests TheNetworkGuy 2026-02-19 12:38:29 +00:00
  • 02a5617bc8 Fixed some hostgroup tests and added 4 new tests TheNetworkGuy 2026-02-19 12:08:01 +00:00
  • 434f0c9e68 Added new core tests dedicated towards status conflicts / changes and Template sourcing TheNetworkGuy 2026-02-19 11:47:50 +00:00
  • c00ec4de31 Fixed several ruff and ty checks. TheNetworkGuy 2026-02-18 14:10:59 +00:00
  • dfba6f4714 Renamed NB API import, removed unused sys import, added error when ZBX token and password are both used, revamped the core testing file and added useful tests such as device clustering and a base for future device testing. TheNetworkGuy 2026-02-18 13:57:37 +00:00
  • 223a27f47c Changed sync function to class TheNetworkGuy 2026-02-17 15:45:43 +00:00
  • d55fc0a4e7 Fixed ruff formatting TheNetworkGuy 2026-02-16 13:29:48 +00:00
  • 39f3c57cca Renamed module/config.py file to settings.py to avoid confusion with the main config.py file TheNetworkGuy 2026-02-16 13:28:18 +00:00
  • 79396242fe 👷 Fixed CI publish 3.4.0-beta.1 Wouter de Bruijn 2026-02-13 15:42:45 +01:00
  • 2028b7b8aa Reformatted file for ruff check TheNetworkGuy 2026-02-12 22:27:22 +00:00
  • ebbebfa17f Adds tests for new core module TheNetworkGuy 2026-02-12 22:24:06 +00:00
  • de02d257f7 Fixed file for linting issues. TheNetworkGuy 2026-02-12 16:27:18 +00:00
  • b3f02dc028 Renamed run_sync function to sync and imported it at package level for easier imports. TheNetworkGuy 2026-02-12 17:22:41 +01:00
  • 2b251b8f68 👷 Changed build to only run once for Python 3.12 Wouter de Bruijn 2026-02-12 16:30:54 +01:00
  • 37257074bc 🔧 Updated lockfile Wouter de Bruijn 2026-02-12 16:25:20 +01:00
  • 0aa019e104 🔧 Added pypi publishing step Wouter de Bruijn 2026-02-12 16:25:11 +01:00
  • 6d0b031016 🔧 Adjusted build to use dynamic git tag version Wouter de Bruijn 2026-02-12 15:42:13 +01:00
  • ce7ad878a2 🔧 Added cli command on package install Wouter de Bruijn 2026-02-12 15:41:59 +01:00
  • e2b5c853a4 🙈 Ignored _version.py file Wouter de Bruijn 2026-02-12 15:41:19 +01:00
  • 3209e7077c 🔥 Removed saving of None return value Wouter de Bruijn 2026-02-12 15:25:35 +01:00
  • 14c0b9a479 Updated patch targets for new module structure Wouter de Bruijn 2026-02-12 15:22:39 +01:00
  • 22ebeaec1b 🐛 Fixed exclusion of all config.py files instead of only root file Wouter de Bruijn 2026-02-12 15:20:47 +01:00
  • b2d021e849 👷 Added python packaging build step in GitHub actions Wouter de Bruijn 2026-02-12 15:14:54 +01:00
  • f302cef05c ♻️ Importing cli parser from netbox_zabbix_sync module Wouter de Bruijn 2026-02-12 15:14:35 +01:00
  • 414f272d75 🙈 Ignored build files Wouter de Bruijn 2026-02-12 15:14:15 +01:00
  • a8146b1e05 ♻️ Moved sourcecode into netbox_zabbix_sync module Wouter de Bruijn 2026-02-12 15:14:05 +01:00
  • 6697311f8d Splitted core code from calling the script directly TheNetworkGuy 2026-02-12 10:33:17 +00:00
  • 811e1eaa69 🔀 Merge pull request #165 from TheNetworkGuy/remove-pylint-annotations Wouter de Bruijn 2026-02-12 10:31:07 +01:00
  • e15919cfdd Merge pull request #164 from TheNetworkGuy/test-linting-exceptions Twan Kamans 2026-02-12 10:26:10 +01:00
  • 6d715e6835 💡 Removed old pylint annotations Wouter de Bruijn 2026-02-12 10:25:35 +01:00
  • ab761f6b07 Merge pull request #163 from TheNetworkGuy/devcontainer-uv-environment Twan Kamans 2026-02-12 10:24:51 +01:00
  • a151771002 🔒️ Switched to installation of locked dependencies Wouter de Bruijn 2026-02-12 10:02:45 +01:00
  • df00114e3a 🔧 Removed pip installation is favor of installing uv and synchronizing virtual environment Wouter de Bruijn 2026-02-12 09:57:15 +01:00
  • 623994c55f 🔧 Specifically ignore assertion in tests instead of entire codebase Wouter de Bruijn 2026-02-12 09:24:32 +01:00
  • 5c04757f4b Merge pull request #162 from TheNetworkGuy/develop Twan Kamans 2026-02-11 17:16:43 +01:00
  • e5d4bb64f0 Fixed linting on several files TheNetworkGuy 2026-02-11 15:51:35 +00:00
  • 3227bb3165 Fixed formatting, fixed tests for type checker TheNetworkGuy 2026-02-11 15:30:53 +00:00
  • d53cc5e7d4 Added link to wiki in readme TheNetworkGuy 2026-02-11 14:39:29 +00:00
  • 8c5cdc77d7 Removed slowly from readme banner. We are not going to move this documentation slow, right? And added a link directly to the wiki. TheNetworkGuy 2026-02-11 14:39:18 +00:00
  • 2ea211b5dd Adds a little banner on the readme pointing towards the Wiki documentation TheNetworkGuy 2026-02-11 14:36:35 +00:00
  • 9212f486bf Updated main script with updated function names and to be valid code for ruff TheNetworkGuy 2026-02-11 14:31:20 +00:00
  • 18d67d5c2b Updated several modules to be valid code for ruff TheNetworkGuy 2026-02-11 14:30:46 +00:00
  • 2e2939ce55 Updated test_tools for ruff TheNetworkGuy 2026-02-11 14:30:18 +00:00
  • 5255984f80 Updated tests due to ruff checks failing TheNetworkGuy 2026-02-11 14:30:03 +00:00
  • d32540d0e1 Updated devcontainer and added assertion exception for pytest code. TheNetworkGuy 2026-02-11 14:29:27 +00:00
  • a80dc9fc2b Merge pull request #161 from TheNetworkGuy/main Twan Kamans 2026-02-11 11:58:25 +01:00
  • f7dd8523a6 Merge pull request #160 from TheNetworkGuy/uv-project Twan Kamans 2026-02-11 11:10:29 +01:00
  • 313158ea73 Merge pull request #154 from TheNetworkGuy/enforce-tag-list-order Twan Kamans 2026-02-11 10:50:44 +01:00
  • 64c10726c7 Added pytest-cov dev dependency Wouter de Bruijn 2026-02-02 18:51:38 +01:00
  • cf4c4c5620 👷 Switched to astral.sh stack for linting and formatting Wouter de Bruijn 2026-02-02 18:48:06 +01:00
  • 6b29a70aea 👷 Updated action to use uv Wouter de Bruijn 2026-02-02 18:48:00 +01:00
  • 49c6b4644c 🔧 Switched to uv for project management Wouter de Bruijn 2026-02-02 18:47:50 +01:00
  • fd66a4c943 🚨 Fixed Unnecessary ellipsis constant Wouter de Bruijn 2025-12-19 09:50:01 +01:00
  • fdaeb79d4d 🐛 Removed deprecation decorator because of unavailability in Python 3.12 Wouter de Bruijn 2025-12-19 09:47:47 +01:00
  • 765b4713a6 🐛 Changed tag sorting to tag name and value Wouter de Bruijn 2025-12-19 09:24:14 +01:00
  • c275e08953 🐛 Enforce tag list order before comparison Wouter de Bruijn 2025-12-02 10:21:28 +01:00
  • 9cc229c2f7 Merge pull request #148 from TheNetworkGuy/develop 3.3.0 Raymond Kuiper 2025-10-16 11:45:04 +02:00
  • 40592a589d Merge pull request #145 from retigra/proxy-by-cf Raymond Kuiper 2025-10-16 11:15:56 +02:00
  • 8197f41788 🎨 Minor formatting cleanup Wouter de Bruijn 2025-10-15 17:27:07 +02:00