ipfabric_netbox 4.3.2b8__py3-none-any.whl → 4.3.2b9__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of ipfabric_netbox might be problematic. Click here for more details.

@@ -6,7 +6,7 @@ class NetboxIPFabricConfig(PluginConfig):
6
6
  name = "ipfabric_netbox"
7
7
  verbose_name = "NetBox IP Fabric SoT Plugin"
8
8
  description = "Sync IP Fabric into NetBox"
9
- version = "4.3.2b8"
9
+ version = "4.3.2b9"
10
10
  base_url = "ipfabric"
11
11
  min_version = "4.4.0"
12
12
 
ipfabric_netbox/jobs.py CHANGED
@@ -3,6 +3,9 @@ from datetime import timedelta
3
3
 
4
4
  from core.choices import JobStatusChoices
5
5
  from core.exceptions import SyncError
6
+ from dcim.models import VirtualChassis
7
+ from dcim.signals import assign_virtualchassis_master
8
+ from django.db.models import signals
6
9
  from netbox.context_managers import event_tracking
7
10
  from rq.timeouts import JobTimeoutException
8
11
  from utilities.datetime import local_now
@@ -116,7 +119,17 @@ def merge_ipfabric_ingestion(job, remove_branch=False, *args, **kwargs):
116
119
 
117
120
  job.start()
118
121
  with event_tracking(request):
119
- ingestion.sync_merge()
122
+ try:
123
+ # This signal is disabled on sync, we need to disable it here too
124
+ signals.post_save.disconnect(
125
+ assign_virtualchassis_master, sender=VirtualChassis
126
+ )
127
+ ingestion.sync_merge()
128
+ finally:
129
+ # Re-enable the disabled signal
130
+ signals.post_save.connect(
131
+ assign_virtualchassis_master, sender=VirtualChassis
132
+ )
120
133
  if remove_branch:
121
134
  branching_branch = ingestion.branch
122
135
  ingestion.branch = None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ipfabric_netbox
3
- Version: 4.3.2b8
3
+ Version: 4.3.2b9
4
4
  Summary: NetBox plugin to sync IP Fabric data into NetBox
5
5
  License: MIT
6
6
  Keywords: netbox,ipfabric,plugin,sync
@@ -1,4 +1,4 @@
1
- ipfabric_netbox/__init__.py,sha256=73DMeFmwHLPJMvLq-1g5KpSIRzdMegAKqltBvWJYBtc,674
1
+ ipfabric_netbox/__init__.py,sha256=2eHlxjUpNJoz-l9ogy5oclgV3oCB8ZwYGDvS2pjhpcQ,674
2
2
  ipfabric_netbox/api/__init__.py,sha256=XRclTGWVR0ZhAAwgYul5Wm_loug5_hUjEumbLQEwKYM,47
3
3
  ipfabric_netbox/api/serializers.py,sha256=92Cwhnqsm1l1oZfdHH5aJI1VFX0eO5JS4BsdXE6Ur18,6738
4
4
  ipfabric_netbox/api/urls.py,sha256=1fXXVTxNY5E64Nfz6b7zXD9bZI3FcefuxAWKMe0w_QU,1240
@@ -13,7 +13,7 @@ ipfabric_netbox/graphql/enums.py,sha256=sZ2neNkM4HUA4ODvio9aFcI8tIJoc2xKuy9_c5b4
13
13
  ipfabric_netbox/graphql/filters.py,sha256=QYYE_5wE57cpRzhXJzU8IEpDDnPb97NUd9Zbf0OZfNA,13066
14
14
  ipfabric_netbox/graphql/schema.py,sha256=5UVHA1hHRvho5eLuuS-HLXTVTbxpUUx68ovG03gumGE,3209
15
15
  ipfabric_netbox/graphql/types.py,sha256=8RxdxiA-WnoaWSzh-tUJCuZBYGmd6QjfJiJcLirRMKY,5961
16
- ipfabric_netbox/jobs.py,sha256=4wM-IdE7ngiRYkL_U87y6gBhc_G5tDsZPw9GL2b2jog,4638
16
+ ipfabric_netbox/jobs.py,sha256=IYV6NChxVYgVpF8xHdvr7mPHX6qahPBpBAAmGTkGTSI,5209
17
17
  ipfabric_netbox/migrations/0001_initial.py,sha256=VphxkWL6QzWq2tcrdXlog718xQtiEGizKwS830z_fOs,13824
18
18
  ipfabric_netbox/migrations/0001_initial_squashed_0013_switch_to_branching_plugin.py,sha256=OvofuA8ImeJmjrbtCrZPcRxAUWx2Ww4DUXLBZYsy6qE,21381
19
19
  ipfabric_netbox/migrations/0002_ipfabricsnapshot_status.py,sha256=xQpouHjOutyj6riN2B592njzSvz_icpkUbo5W7nWLYw,431
@@ -83,6 +83,6 @@ ipfabric_netbox/utilities/ipfutils.py,sha256=v7l4IFL3o0GnWd8GKTxw2_5Xz_Jt7Vs2Jru
83
83
  ipfabric_netbox/utilities/logging.py,sha256=GYknjocMN6LQ2873_az3y0RKm29TCXaWviUIIneH-x0,3445
84
84
  ipfabric_netbox/utilities/transform_map.py,sha256=nJhEdi2DqqowrtfowNgg-FZiE3_lN0MhQvaNwHS4yXw,8979
85
85
  ipfabric_netbox/views.py,sha256=nFqb9htUH-D8NXvJcWPb5D5u909rfHMZ4trUbCULafU,45208
86
- ipfabric_netbox-4.3.2b8.dist-info/METADATA,sha256=tQNvn5SbG3yW8uQ_UMDO8xsK0ioOBJZUHbeEJskvv5Y,4781
87
- ipfabric_netbox-4.3.2b8.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
88
- ipfabric_netbox-4.3.2b8.dist-info/RECORD,,
86
+ ipfabric_netbox-4.3.2b9.dist-info/METADATA,sha256=bQEYNZiF0fodXCWIOaWSVwYdGObTAOPTDZyHOVE-f9k,4781
87
+ ipfabric_netbox-4.3.2b9.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
88
+ ipfabric_netbox-4.3.2b9.dist-info/RECORD,,