From d11c1677e2f15d7438d4a48242a5f5038e293f27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alo=C3=AFs=20Micard?= Date: Wed, 19 Feb 2025 22:27:08 +0100 Subject: [PATCH] Add eth0 as raw_interface_name --- Changelog.md | 4 ++++ netbox_pve_sync/__init__.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Changelog.md b/Changelog.md index 1e40c29..61a7504 100644 --- a/Changelog.md +++ b/Changelog.md @@ -6,6 +6,10 @@ - [#5] Allow to configure cluster ID. +### Changed + +- Add eth0 as raw_interface_name. + ## [0.1.0] - Initial release. \ No newline at end of file diff --git a/netbox_pve_sync/__init__.py b/netbox_pve_sync/__init__.py index 19b6a15..e25f6ed 100644 --- a/netbox_pve_sync/__init__.py +++ b/netbox_pve_sync/__init__.py @@ -246,7 +246,7 @@ def _process_pve_virtual_machine_network_interface( # TODO: Improve Multiple IP address handling _pve_virtual_machine_ip_address = None - for raw_interface_name in ['ens18', 'ens19']: + for raw_interface_name in ['eth0', 'ens18', 'ens19']: if raw_interface_name in _pve_virtual_machine_ip_addresses: _pve_virtual_machine_ip_address = _pve_virtual_machine_ip_addresses[raw_interface_name][0] break