Bases: NautobotAppConfig
App configuration for the nautobot_bgp_models app.
Source code in nautobot_bgp_models/__init__.py
| class NautobotBGPModelsConfig(NautobotAppConfig):
"""App configuration for the nautobot_bgp_models app."""
name = "nautobot_bgp_models"
verbose_name = "BGP Models"
version = __version__
author = "Network to Code, LLC"
description = "Nautobot BGP Models App."
base_url = "bgp"
required_settings = []
min_version = "2.4.15"
max_version = "2.9999"
default_settings = {
"default_statuses": {
"AutonomousSystem": ["Active", "Available", "Planned"],
"BGPRoutingInstance": ["Planned", "Active", "Decommissioned"],
"Peering": ["Active", "Decommissioned", "Deprovisioning", "Offline", "Planned", "Provisioning"],
}
}
docs_view_name = "plugins:nautobot_bgp_models:docs"
searchable_models = ["autonomoussystem"]
def ready(self):
"""Callback invoked after the app is loaded."""
super().ready()
# Attempt to register versioned models & tables with Dolt if it is
# available.
from . import dolt_compat # noqa pylint: disable=import-outside-toplevel, unused-import
from .signals import ( # pylint: disable=import-outside-toplevel
post_migrate_create_statuses,
)
post_migrate.connect(post_migrate_create_statuses, sender=self)
|
ready()
Callback invoked after the app is loaded.
Source code in nautobot_bgp_models/__init__.py
| def ready(self):
"""Callback invoked after the app is loaded."""
super().ready()
# Attempt to register versioned models & tables with Dolt if it is
# available.
from . import dolt_compat # noqa pylint: disable=import-outside-toplevel, unused-import
from .signals import ( # pylint: disable=import-outside-toplevel
post_migrate_create_statuses,
)
post_migrate.connect(post_migrate_create_statuses, sender=self)
|