Skip to content

Commit

Permalink
initial renaming work
Browse files Browse the repository at this point in the history
  • Loading branch information
whitej6 committed Dec 18, 2023
1 parent 7af7fa7 commit 278e7ce
Show file tree
Hide file tree
Showing 20 changed files with 28 additions and 27 deletions.
8 changes: 4 additions & 4 deletions nautobot_firewall_models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
"""Plugin declaration for nautobot_firewall_models."""
"""App declaration for nautobot_firewall_models."""
# Metadata is inherited from Nautobot. If not including Nautobot in the environment, this should be added
from importlib import metadata

__version__ = metadata.version(__name__)

from nautobot.extras.plugins import PluginConfig
from nautobot.apps import NautobotAppConfig


class NautobotFirewallModelsConfig(PluginConfig):
"""Plugin configuration for the nautobot_firewall_models plugin."""
class NautobotFirewallModelsConfig(NautobotAppConfig):
"""App configuration for the nautobot_firewall_models app."""

name = "nautobot_firewall_models"
verbose_name = "Firewall & Security Models"
Expand Down
2 changes: 1 addition & 1 deletion nautobot_firewall_models/api/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"""REST API module for nautobot_firewall_models plugin."""
"""REST API module for nautobot_firewall_models app."""
2 changes: 1 addition & 1 deletion nautobot_firewall_models/api/urls.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Django API urlpatterns declaration for firewall model plugin."""
"""Django API urlpatterns declaration for firewall model app."""

from nautobot.apps.api import OrderedDefaultRouter

Expand Down
2 changes: 1 addition & 1 deletion nautobot_firewall_models/filters.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Filtering for Firewall Model Plugin."""
"""Filtering for Firewall Model App."""
from django.contrib.contenttypes.fields import GenericRelation
from django.core.exceptions import ValidationError
from django.db.models import Q
Expand Down
2 changes: 1 addition & 1 deletion nautobot_firewall_models/forms.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Forms for the Firewall plugin."""
"""Forms for the Firewall app."""

from django import forms
from nautobot.dcim.models import Device, Interface
Expand Down
2 changes: 1 addition & 1 deletion nautobot_firewall_models/homepage.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Adds plugin items to homepage."""
"""Adds App items to homepage."""
from nautobot.core.apps import HomePageItem, HomePagePanel

from nautobot_firewall_models.models import Policy, PolicyRule, CapircaPolicy, NATPolicy, NATPolicyRule
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Management command to bootstrap dummy data for firewall model plugin."""
"""Management command to bootstrap dummy data for firewall model app."""

from django.core.management.base import BaseCommand
from django.db.utils import IntegrityError
Expand Down
2 changes: 1 addition & 1 deletion nautobot_firewall_models/models/address.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Models for the Firewall plugin."""
"""Models for the Firewall app."""
# pylint: disable=duplicate-code, too-many-lines

from django.core.exceptions import ValidationError
Expand Down
2 changes: 1 addition & 1 deletion nautobot_firewall_models/models/nat_policy.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Models for the Firewall plugin."""
"""Models for the Firewall app."""
# pylint: disable=duplicate-code, too-many-lines

from django.db import models
Expand Down
2 changes: 1 addition & 1 deletion nautobot_firewall_models/models/security_policy.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Models for the Firewall plugin."""
"""Models for the Firewall app."""
# pylint: disable=duplicate-code, too-many-lines

from django.db import models
Expand Down
2 changes: 1 addition & 1 deletion nautobot_firewall_models/models/service.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Models for the Firewall plugin."""
"""Models for the Firewall app."""
# pylint: disable=duplicate-code, too-many-lines

from django.db import models
Expand Down
2 changes: 1 addition & 1 deletion nautobot_firewall_models/models/user.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Models for the Firewall plugin."""
"""Models for the Firewall app."""
# pylint: disable=duplicate-code

from django.db import models
Expand Down
2 changes: 1 addition & 1 deletion nautobot_firewall_models/models/zone.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Models for the Firewall plugin."""
"""Models for the Firewall app."""
# pylint: disable=duplicate-code

from django.db import models
Expand Down
11 changes: 6 additions & 5 deletions nautobot_firewall_models/template_content.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
"""Extensions of baseline Nautobot views."""
from nautobot.extras.plugins import PluginTemplateExtension
from nautobot.apps.ui import TemplateExtension

from nautobot_firewall_models.models import CapircaPolicy


class DevicePolicies(PluginTemplateExtension): # pylint: disable=abstract-method
class DevicePolicies(TemplateExtension): # pylint: disable=abstract-method
"""Add Policy to the right side of the Device page."""

model = "dcim.device"
Expand All @@ -19,7 +20,7 @@ def right_page(self):
)


class DynamicGroupDevicePolicies(PluginTemplateExtension): # pylint: disable=abstract-method
class DynamicGroupDevicePolicies(TemplateExtension): # pylint: disable=abstract-method
"""Add Policy to the right side of the Device page."""

model = "dcim.device"
Expand All @@ -32,7 +33,7 @@ def right_page(self):
)


class DynamicGroupPolicies(PluginTemplateExtension): # pylint: disable=abstract-method
class DynamicGroupPolicies(TemplateExtension): # pylint: disable=abstract-method
"""Add Policy to the right side of the Device page."""

model = "extras.dynamicgroup"
Expand All @@ -48,7 +49,7 @@ def right_page(self):
)


class CapircaPolicies(PluginTemplateExtension): # pylint: disable=abstract-method
class CapircaPolicies(TemplateExtension): # pylint: disable=abstract-method
"""Add Policy to the right side of the Device page."""

model = "dcim.device"
Expand Down
2 changes: 1 addition & 1 deletion nautobot_firewall_models/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"""Unit tests for nautobot_firewall_models plugin."""
"""Unit tests for nautobot_firewall_models app."""
2 changes: 1 addition & 1 deletion nautobot_firewall_models/urls.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Django urlpatterns declaration for nautobot_firewall_models plugin."""
"""Django urlpatterns declaration for nautobot_firewall_models app."""

from django.templatetags.static import static
from django.urls import path
Expand Down
2 changes: 1 addition & 1 deletion nautobot_firewall_models/utils/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Help funcs for firewall models plugin."""
"""Help funcs for firewall models app."""
import json
from django.conf import settings
from django.utils.module_loading import import_string
Expand Down
2 changes: 1 addition & 1 deletion nautobot_firewall_models/utils/capirca.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Management command to bootstrap dummy data for firewall model plugin."""
"""Management command to bootstrap dummy data for firewall model app."""
# pylint: disable=too-many-instance-attributes,too-many-locals
import logging
import re
Expand Down
2 changes: 1 addition & 1 deletion nautobot_firewall_models/validators.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Validators for plugin."""
"""Validators for app."""
import re

from django.core.exceptions import ValidationError
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "nautobot-firewall-models"
version = "2.0.1"
version = "2.0.2a0"
description = "Nautobot plugin to model firewall objects."
authors = ["Network to Code, LLC <opensource@networktocode.com>"]
license = "Apache-2.0"
Expand Down

0 comments on commit 278e7ce

Please sign in to comment.