remove proxmox function

This commit is contained in:
2026-07-20 14:31:18 +02:00
parent 6ec4093c97
commit 4339b4a159
4 changed files with 0 additions and 249 deletions
@@ -1,69 +0,0 @@
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("netbox_vmware_importer", "0002_align_netbox_46_model_state"),
]
operations = [
migrations.AlterField(
model_name="vcenterendpoint",
name="host",
field=models.CharField(help_text="vCenter, ESXi, or Proxmox VE hostname or IP address", max_length=255),
),
migrations.AlterField(
model_name="vcenterendpoint",
name="validate_ssl",
field=models.BooleanField(default=False, help_text="Validate the endpoint TLS certificate."),
),
migrations.AlterField(
model_name="vcenterendpoint",
name="cluster",
field=models.ForeignKey(
help_text="NetBox cluster into which hypervisor VMs will be synchronized.",
on_delete=django.db.models.deletion.PROTECT,
related_name="vmware_import_endpoints",
to="virtualization.cluster",
),
),
migrations.AddField(
model_name="vcenterendpoint",
name="provider",
field=models.CharField(
choices=[
("vmware", "VMware vSphere"),
("proxmox", "Proxmox VE"),
],
default="vmware",
max_length=30,
),
),
migrations.AddField(
model_name="vcenterendpoint",
name="auth_method",
field=models.CharField(
choices=[
("password", "Username/password"),
("api_token", "API token"),
],
default="password",
max_length=30,
),
),
migrations.AddField(
model_name="vcenterendpoint",
name="token_name",
field=models.CharField(
blank=True,
help_text="Proxmox API token ID, e.g. netbox-import. The token secret is stored in the password field.",
max_length=100,
),
),
migrations.AddField(
model_name="vcenterendpoint",
name="sync_lxc_containers",
field=models.BooleanField(default=True, verbose_name="Sync Proxmox LXC containers"),
),
]
@@ -1,23 +0,0 @@
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("netbox_vmware_importer", "0003_add_proxmox_endpoint_fields"),
]
operations = [
migrations.AddField(
model_name="vcenterendpoint",
name="request_timeout_seconds",
field=models.PositiveIntegerField(
default=120,
help_text="HTTP/API read timeout in seconds.",
validators=[
django.core.validators.MinValueValidator(5),
django.core.validators.MaxValueValidator(600),
],
),
),
]
@@ -1,51 +0,0 @@
import decimal
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("netbox_vmware_importer", "0004_add_endpoint_api_timeout"),
]
operations = [
migrations.AddField(
model_name="vcenterendpoint",
name="connect_timeout_seconds",
field=models.PositiveIntegerField(
default=10,
help_text="TCP/TLS connection timeout in seconds.",
validators=[
django.core.validators.MinValueValidator(1),
django.core.validators.MaxValueValidator(120),
],
),
),
migrations.AddField(
model_name="vcenterendpoint",
name="max_retries",
field=models.PositiveSmallIntegerField(
default=0,
help_text="Retries for safe Proxmox GET requests when the endpoint returns transient errors.",
validators=[
django.core.validators.MinValueValidator(0),
django.core.validators.MaxValueValidator(10),
],
),
),
migrations.AddField(
model_name="vcenterendpoint",
name="retry_backoff_seconds",
field=models.DecimalField(
decimal_places=2,
default=decimal.Decimal("0.50"),
help_text="Exponential retry backoff base delay in seconds.",
max_digits=5,
validators=[
django.core.validators.MinValueValidator(decimal.Decimal("0.00")),
django.core.validators.MaxValueValidator(decimal.Decimal("60.00")),
],
),
),
]
@@ -1,106 +0,0 @@
import decimal
import django.core.validators
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("netbox_vmware_importer", "0005_add_proxmox_connection_tuning"),
]
operations = [
migrations.AlterModelOptions(
name="vcenterendpoint",
options={
"ordering": ("name",),
"verbose_name": "VMware endpoint",
"verbose_name_plural": "VMware endpoints",
},
),
migrations.AlterField(
model_name="vcenterendpoint",
name="provider",
field=models.CharField(
choices=[
("vmware", "VMware vSphere"),
("proxmox", "Proxmox VE (legacy)"),
],
default="vmware",
max_length=30,
),
),
migrations.AlterField(
model_name="vcenterendpoint",
name="auth_method",
field=models.CharField(
choices=[
("password", "Username/password"),
("api_token", "API token (legacy)"),
],
default="password",
max_length=30,
),
),
migrations.AlterField(
model_name="vcenterendpoint",
name="host",
field=models.CharField(help_text="vCenter or ESXi hostname or IP address", max_length=255),
),
migrations.AlterField(
model_name="vcenterendpoint",
name="validate_ssl",
field=models.BooleanField(default=False, help_text="Validate the VMware endpoint certificate."),
),
migrations.AlterField(
model_name="vcenterendpoint",
name="cluster",
field=models.ForeignKey(
help_text="NetBox cluster into which VMware VMs will be synchronized.",
on_delete=django.db.models.deletion.PROTECT,
related_name="vmware_import_endpoints",
to="virtualization.cluster",
),
),
migrations.AlterField(
model_name="vcenterendpoint",
name="token_name",
field=models.CharField(
blank=True,
help_text="Legacy Proxmox API token ID. Kept only for deleting old endpoints.",
max_length=100,
),
),
migrations.AlterField(
model_name="vcenterendpoint",
name="max_retries",
field=models.PositiveSmallIntegerField(
default=0,
help_text="Legacy connection retry setting. Kept only for compatibility with older plugin versions.",
validators=[
django.core.validators.MinValueValidator(0),
django.core.validators.MaxValueValidator(10),
],
),
),
migrations.AlterField(
model_name="vcenterendpoint",
name="retry_backoff_seconds",
field=models.DecimalField(
decimal_places=2,
default=decimal.Decimal("0.50"),
help_text="Exponential retry backoff base delay in seconds.",
max_digits=5,
validators=[
django.core.validators.MinValueValidator(decimal.Decimal("0.00")),
django.core.validators.MaxValueValidator(decimal.Decimal("60.00")),
],
),
),
migrations.AlterField(
model_name="vcenterendpoint",
name="sync_lxc_containers",
field=models.BooleanField(default=True, verbose_name="Sync legacy Proxmox LXC containers"),
),
]