ipfabric_netbox 4.2.1b1__py3-none-any.whl → 4.2.1b3__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.2.1b1"
9
+ version = "4.2.1b3"
10
10
  base_url = "ipfabric"
11
11
  min_version = "4.2.4"
12
12
 
ipfabric_netbox/forms.py CHANGED
@@ -366,16 +366,23 @@ class IPFabricSourceForm(NetBoxModelForm):
366
366
  self.source_type = get_field_value(self, "type")
367
367
 
368
368
  # Set fieldsets dynamically based on source_type
369
+ self.fieldsets: list[FieldSet] = []
370
+ self.fieldsets.append(FieldSet("name", "type", "url", name=_("Source")))
369
371
  if self.source_type == "local":
370
- self.fieldsets = [
371
- FieldSet("name", "type", "url", name=_("Source")),
372
- FieldSet("auth", "verify", "timeout", name=_("Parameters")),
373
- ]
372
+ self.fieldsets.append(
373
+ FieldSet("auth", "verify", "timeout", name=_("Parameters"))
374
+ )
374
375
  else:
375
- self.fieldsets = [
376
- FieldSet("name", "type", "url", name=_("Source")),
377
- FieldSet("timeout", name=_("Parameters")),
378
- ]
376
+ self.fieldsets.append(FieldSet("timeout", name=_("Parameters")))
377
+
378
+ self.fields["url"] = forms.URLField(
379
+ required=True,
380
+ label=_("Base URL"),
381
+ widget=forms.TextInput(attrs={"class": "form-control"}),
382
+ help_text=_(
383
+ "for example https://myinstance.com or https://192.168.0.1 etc."
384
+ ),
385
+ )
379
386
 
380
387
  self.fields["timeout"] = forms.IntegerField(
381
388
  required=False,
@@ -52,7 +52,7 @@
52
52
  <td>{{ object.description|placeholder }}</td>
53
53
  </tr>
54
54
  <tr>
55
- <th scope="row">URL</th>
55
+ <th scope="row">Base URL</th>
56
56
  <td>
57
57
  <a href="{{ object.url }}">{{ object.url }}</a>
58
58
  </td>
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: ipfabric_netbox
3
- Version: 4.2.1b1
3
+ Version: 4.2.1b3
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=7Pn2zxoAmxBrV8hJ3bUPoLFZNacylsVcu4LbPPyykPU,674
1
+ ipfabric_netbox/__init__.py,sha256=4huZN5-WpBfKzrEEvQYrXXycVSP85mogzVh9LdCbQp4,674
2
2
  ipfabric_netbox/api/__init__.py,sha256=XRclTGWVR0ZhAAwgYul5Wm_loug5_hUjEumbLQEwKYM,47
3
3
  ipfabric_netbox/api/serializers.py,sha256=7cmVsIzGzz9u6htLKizLr2Ar0OC7uV8rMX3U7EzRmG4,6482
4
4
  ipfabric_netbox/api/urls.py,sha256=1fXXVTxNY5E64Nfz6b7zXD9bZI3FcefuxAWKMe0w_QU,1240
@@ -7,7 +7,7 @@ ipfabric_netbox/choices.py,sha256=27ePh1IUU3zETbceNcAgjsHvqhPlGpayFRFr5luqW1k,50
7
7
  ipfabric_netbox/data/transform_map.json,sha256=4PsucgMHcLW3SPoKEptQCd0gA5tCF4hjrR4bGQFCWy8,21744
8
8
  ipfabric_netbox/exceptions.py,sha256=DT4dpbakvqoROtBR_F0LzvQCMNWpGhufFcUbZTx0OLY,2655
9
9
  ipfabric_netbox/filtersets.py,sha256=vaWlxf8DTwduv_aQ35kJxwyzmM1XvE781GjUj2z4QGQ,7845
10
- ipfabric_netbox/forms.py,sha256=8xKVE_MneFKCILPGDrfEIskGD1BjCoH9UtrteOSSihU,42939
10
+ ipfabric_netbox/forms.py,sha256=-H8KZ7aqtDrvotsL698kRKfvUngnLolnIVgYLfmt3UQ,43212
11
11
  ipfabric_netbox/graphql/__init__.py,sha256=-a5w_VY7pc-RVt8MvThkTzeAqCC3xCan4Ue6iMefmjI,754
12
12
  ipfabric_netbox/graphql/enums.py,sha256=QFhwiwUKJekxQfsOGk_-70_WnkzrKEP_zIBMrin0S0Q,1343
13
13
  ipfabric_netbox/graphql/filters.py,sha256=B8xy9r9a18vWfV6a6tHXAN1FUcoxI6MOrbsdNmzusNI,12991
@@ -52,7 +52,7 @@ ipfabric_netbox/templates/ipfabric_netbox/inc/transform_map_relationship_map.htm
52
52
  ipfabric_netbox/templates/ipfabric_netbox/ipfabric_table.html,sha256=d5qcBeKDgh57eSZ6J1oYc--qfGmHRC6PLhrffFBQiM8,1631
53
53
  ipfabric_netbox/templates/ipfabric_netbox/ipfabricingestion.html,sha256=fm_X2FLnoTS6s6AL3WmU6p3puDojROSkPG0jA4EBQeM,4435
54
54
  ipfabric_netbox/templates/ipfabric_netbox/ipfabricsnapshot.html,sha256=hj8ORs_4mM_xTjmw3McHN-da5seC8nbbkzobn0f1TSc,3482
55
- ipfabric_netbox/templates/ipfabric_netbox/ipfabricsource.html,sha256=koR_t6Mf2FhWlPZHchWsTOQDSLB7AWrqtY0TRnIzrrM,3864
55
+ ipfabric_netbox/templates/ipfabric_netbox/ipfabricsource.html,sha256=DQOA2TA7f1nI5YpxXthS1VzjIU1kMZus37l6bYSCauE,3869
56
56
  ipfabric_netbox/templates/ipfabric_netbox/ipfabricsync.html,sha256=BicVS7mCP85fFZJEt46GUm5xppi1Jw3byw1el9BB2WE,4448
57
57
  ipfabric_netbox/templates/ipfabric_netbox/ipfabrictransformmap.html,sha256=qFo_Ku5oksx5co4HVtVq0xAVFI6CLWs-iBrwYzGsEGA,1460
58
58
  ipfabric_netbox/templates/ipfabric_netbox/ipfabrictransformmap_list.html,sha256=p8zqn0-B6mawSUM3zQrus6dsKUM5SRBTO0X94pLboX8,452
@@ -80,6 +80,6 @@ ipfabric_netbox/utilities/logging.py,sha256=GYknjocMN6LQ2873_az3y0RKm29TCXaWviUI
80
80
  ipfabric_netbox/utilities/nbutils.py,sha256=kFBEiJOGvr_49hJWCS2duXojx2-A9kVk0Xp_vj0ohfs,2641
81
81
  ipfabric_netbox/utilities/transform_map.py,sha256=QotbGc2TksINJrb62STgAigpC5Nsgi5umYHu_0rZd8k,2204
82
82
  ipfabric_netbox/views.py,sha256=W7By73eiopwX-Q10S4kcFVL-lkz0WG0pwe2doNpvYg0,36807
83
- ipfabric_netbox-4.2.1b1.dist-info/METADATA,sha256=kViH4IXkbDcLYi7XGSIug-KT486e_GIgCb7ocCeembA,4638
84
- ipfabric_netbox-4.2.1b1.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
85
- ipfabric_netbox-4.2.1b1.dist-info/RECORD,,
83
+ ipfabric_netbox-4.2.1b3.dist-info/METADATA,sha256=lp_3SvATNncyuoUxO8ZV_FNw9Ru6VRYQOjPdOYhp89w,4638
84
+ ipfabric_netbox-4.2.1b3.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
85
+ ipfabric_netbox-4.2.1b3.dist-info/RECORD,,