File tree 2 files changed +6
-1
lines changed
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -708,7 +708,8 @@ def prune_data(self):
708
708
709
709
log .info ("Pruning orphaned data in NetBox" )
710
710
711
- disabled_sources_tags = [x .source_tag for x in self .inventory .source_list if getattr (x , "enabled" ) is False ]
711
+ disabled_sources_tags = \
712
+ [x .source_tag for x in self .inventory .source_list if grab (x , "settings.enabled" , fallback = False ) is False ]
712
713
713
714
# update all items in NetBox accordingly
714
715
today = datetime .now ()
Original file line number Diff line number Diff line change @@ -293,6 +293,10 @@ def __init__(self):
293
293
bool ,
294
294
description = "disables syncing of any VLANs visible in vCenter to NetBox" ,
295
295
default_value = False ),
296
+ ConfigOption ("exclude_vlan_by_name" ,
297
+ str ),
298
+ ConfigOption ("exclude_vlan_by_id" ,
299
+ str ),
296
300
ConfigOption ("track_vm_host" ,
297
301
bool ,
298
302
description = """enabling this option will add the ESXi host
You can’t perform that action at this time.
0 commit comments