From a6cd4e9f8dbad8925525cbd0c566851473f8f1c7 Mon Sep 17 00:00:00 2001 From: "Zach Biles @bile0026" Date: Fri, 13 Dec 2024 13:30:25 -0600 Subject: [PATCH] =?UTF-8?q?refactor:=20=F0=9F=94=A5=20remove=20extra=20fil?= =?UTF-8?q?es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../00002_delete_librenmsinstance.py | 15 --- .../librenms/migrations/0001_initial.py | 73 ----------- .../librenms/migrations/__init__.py | 0 .../librenmsinstance.html | 123 ------------------ 4 files changed, 211 deletions(-) delete mode 100644 nautobot_ssot/integrations/librenms/migrations/00002_delete_librenmsinstance.py delete mode 100644 nautobot_ssot/integrations/librenms/migrations/0001_initial.py delete mode 100644 nautobot_ssot/integrations/librenms/migrations/__init__.py delete mode 100644 nautobot_ssot/integrations/librenms/templates/nautobot_ssot_librenms/librenmsinstance.html diff --git a/nautobot_ssot/integrations/librenms/migrations/00002_delete_librenmsinstance.py b/nautobot_ssot/integrations/librenms/migrations/00002_delete_librenmsinstance.py deleted file mode 100644 index a43ec10fb..000000000 --- a/nautobot_ssot/integrations/librenms/migrations/00002_delete_librenmsinstance.py +++ /dev/null @@ -1,15 +0,0 @@ -# Generated by Django 3.2.23 on 2024-01-08 20:48 - -from django.db import migrations - - -class Migration(migrations.Migration): - dependencies = [ - ("nautobot_ssot_librenms", "0001_initial"), - ] - - operations = [ - migrations.DeleteModel( - name="LibreNMSInstance", - ), - ] diff --git a/nautobot_ssot/integrations/librenms/migrations/0001_initial.py b/nautobot_ssot/integrations/librenms/migrations/0001_initial.py deleted file mode 100644 index 2aae2c61f..000000000 --- a/nautobot_ssot/integrations/librenms/migrations/0001_initial.py +++ /dev/null @@ -1,73 +0,0 @@ -# Generated by Django 3.2.23 on 2024-01-04 15:46 - -import django.core.serializers.json -from django.db import migrations, models -import django.db.models.deletion -import nautobot.core.models.fields -import nautobot.extras.models.mixins -import uuid - - -class Migration(migrations.Migration): - initial = True - - dependencies = [ - ("extras", "0102_set_null_objectchange_contenttype"), - ("tenancy", "0008_tagsfield"), - ] - - operations = [ - migrations.CreateModel( - name="LibreNMSInstance", - fields=[ - ( - "id", - models.UUIDField( - default=uuid.uuid4, editable=False, primary_key=True, serialize=False, unique=True - ), - ), - ("created", models.DateTimeField(auto_now_add=True, null=True)), - ("last_updated", models.DateTimeField(auto_now=True, null=True)), - ( - "_custom_field_data", - models.JSONField(blank=True, default=dict, encoder=django.core.serializers.json.DjangoJSONEncoder), - ), - ("name", models.CharField(max_length=100, unique=True)), - ("description", models.CharField(blank=True, max_length=200)), - ("host_url", models.CharField(blank=True, max_length=255)), - ("port", models.IntegerField(default=443)), - ("verify", models.BooleanField(default=True)), - ( - "auth_group", - models.ForeignKey( - blank=True, - default=None, - null=True, - on_delete=django.db.models.deletion.SET_NULL, - to="extras.secretsgroup", - ), - ), - ("tags", nautobot.core.models.fields.TagsField(through="extras.TaggedItem", to="extras.Tag")), - ( - "tenant", - models.ForeignKey( - blank=True, - default=None, - null=True, - on_delete=django.db.models.deletion.SET_NULL, - to="tenancy.tenant", - ), - ), - ], - options={ - "verbose_name": "LibreNMS Instance", - "verbose_name_plural": "LibreNMS Instances", - "ordering": ["name"], - }, - bases=( - models.Model, - nautobot.extras.models.mixins.DynamicGroupMixin, - nautobot.extras.models.mixins.NotesMixin, - ), - ), - ] diff --git a/nautobot_ssot/integrations/librenms/migrations/__init__.py b/nautobot_ssot/integrations/librenms/migrations/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/nautobot_ssot/integrations/librenms/templates/nautobot_ssot_librenms/librenmsinstance.html b/nautobot_ssot/integrations/librenms/templates/nautobot_ssot_librenms/librenmsinstance.html deleted file mode 100644 index 54b7a35a7..000000000 --- a/nautobot_ssot/integrations/librenms/templates/nautobot_ssot_librenms/librenmsinstance.html +++ /dev/null @@ -1,123 +0,0 @@ - - -{% extends 'generic/object_detail.html' %} -{% load buttons %} -{% load static %} -{% load custom_links %} -{% load helpers %} -{% load plugins %} - -{% block title %}{{ object }}{% endblock %} - - - -{% block header %} -
-
- -
-
-
-
- - - - -
-
-
-
-
- {% if perms.nautobot_ssot_librenms.change_librnemsinstance %} - - Edit - - {% endif %} - {% if perms.nautobot_ssot_librenms.delete_librenmsinstance %} - - Delete - - {% endif %} -
-

{{ object }}

-{% include 'inc/created_updated.html' with obj=object %} -
- {% custom_links object %} -
- -{% endblock %} - -{% block content %} -
-
-
-
- LibreNMSInstance -
- - - - - - - - - - - - - - - - - - - - - - - - - -
Name - {{ object.name }} -
Description - {{ object.description|placeholder }} -
Host URL - {{ object.host_url|placeholder }} -
Port - {{ object.port|placeholder }} -
Verify SSL - {{ object.verify|placeholder }} -
Secrets Group - {{ object.auth_group|placeholder }} -
-
- {% include 'inc/custom_fields_panel.html' %} - {% include 'inc/relationships_panel.html' %} - {% plugin_left_page object %} -
-
-
-
- {% plugin_full_width_page object %} -
-
-{% endblock %}