Skip to content
Snippets Groups Projects
Commit c75cf932 authored by fmkiotheka's avatar fmkiotheka
Browse files

feat: restrict vminterfaces to cluster

parent cf51f4e6
No related branches found
No related tags found
No related merge requests found
...@@ -45,7 +45,9 @@ class NetBox: ...@@ -45,7 +45,9 @@ class NetBox:
cluster_id=cluster_id cluster_id=cluster_id
) )
] ]
netbox_interfaces = [dict(i) for i in NB_API.virtualization.interfaces.all()] netbox_interfaces = [dict(i) for i in NB_API.virtualization.interfaces.filter(
cluster_id=cluster_id
)]
except Exception as e: except Exception as e:
raise APIError(e) raise APIError(e)
......
...@@ -2,7 +2,7 @@ from setuptools import find_packages, setup ...@@ -2,7 +2,7 @@ from setuptools import find_packages, setup
setup( setup(
name='netbox-proxmox-sync', name='netbox-proxmox-sync',
version='2.2.4', version='2.2.5',
description='Import Proxmox cluster info into NetBox.', description='Import Proxmox cluster info into NetBox.',
install_requires=['pynetbox', 'proxmoxer'], install_requires=['pynetbox', 'proxmoxer'],
include_package_data=True, include_package_data=True,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment