Skip to content

Package

nautobot_igp_models

App declaration for nautobot_igp_models.

NautobotIgpModelsConfig

Bases: NautobotAppConfig

App configuration for the nautobot_igp_models app.

Source code in nautobot_igp_models/__init__.py
class NautobotIgpModelsConfig(NautobotAppConfig):
    """App configuration for the nautobot_igp_models app."""

    name = "nautobot_igp_models"
    verbose_name = "Nautobot IGP Models"
    version = __version__
    author = "Byrn Baker"
    description = "Nautobot IGP Models."
    base_url = "nautobot-igp-models"
    required_settings = []
    min_version = "3.0.0"
    max_version = "3.9999"
    default_settings = {
        "default_statuses": {
            "IGPRoutingInstance": ["Planned", "Active", "Decommissioned"],
            "ISISConfiguration": ["Active", "Decommissioned", "Deprovisioning", "Offline", "Planned", "Provisioning"],
            "ISISInterfaceConfiguration": [
                "Active",
                "Decommissioned",
                "Deprovisioning",
                "Offline",
                "Planned",
                "Provisioning",
            ],
            "OSPFConfiguration": ["Active", "Decommissioned", "Deprovisioning", "Offline", "Planned", "Provisioning"],
            "OSPFInterfaceConfiguration": [
                "Active",
                "Decommissioned",
                "Deprovisioning",
                "Offline",
                "Planned",
                "Provisioning",
            ],
        }
    }
    caching_config = {}
    docs_view_name = "plugins:nautobot_igp_models:docs"

    def ready(self):
        """Callback invoked after the app is loaded."""
        super().ready()

        from .signals import (  # pylint: disable=import-outside-toplevel
            post_migrate_create_statuses,
            post_migrate_load_resources,
        )

        post_migrate.connect(post_migrate_create_statuses, sender=self)
        post_migrate.connect(post_migrate_load_resources, sender=self)

ready()

Callback invoked after the app is loaded.

Source code in nautobot_igp_models/__init__.py
def ready(self):
    """Callback invoked after the app is loaded."""
    super().ready()

    from .signals import (  # pylint: disable=import-outside-toplevel
        post_migrate_create_statuses,
        post_migrate_load_resources,
    )

    post_migrate.connect(post_migrate_create_statuses, sender=self)
    post_migrate.connect(post_migrate_load_resources, sender=self)