Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions module/sources/vmware/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,12 @@ def __init__(self):
The same behavior also applies for VM disk sizes.""",
default_value=True
),
ConfigOption("skip_host_nics",
bool,
description="""Skip creating or updating host physical nics in Netobx. Normal operation
will maintain all phisical nics in netbox. This option will skip this part.""" ,
default_value=False
),

# removed settings
ConfigOption("netbox_host_device_role",
Expand Down
3 changes: 3 additions & 0 deletions module/sources/vmware/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -1707,6 +1707,9 @@ def add_host(self, obj):
if len(host_custom_fields) > 0:
host_data["custom_fields"] = host_custom_fields

if self.settings.skip_host_nics is True:
return

# iterate over hosts virtual switches, needed to enrich data on physical interfaces
self.network_data["vswitch"][name] = dict()
for vswitch in grab(obj, "config.network.vswitch", fallback=list()):
Expand Down