|
@@ -6,7 +6,7 @@ from django.urls import reverse
|
|
|
from django.utils.translation import gettext_lazy as _
|
|
from django.utils.translation import gettext_lazy as _
|
|
|
|
|
|
|
|
from netbox.models import ChangeLoggedModel, OrganizationalModel, PrimaryModel
|
|
from netbox.models import ChangeLoggedModel, OrganizationalModel, PrimaryModel
|
|
|
-from netbox.models.features import CustomFieldsMixin, CustomLinksMixin, TagsMixin
|
|
|
|
|
|
|
+from netbox.models.features import ContactsMixin, CustomFieldsMixin, CustomLinksMixin, TagsMixin
|
|
|
from vpn.choices import *
|
|
from vpn.choices import *
|
|
|
|
|
|
|
|
__all__ = (
|
|
__all__ = (
|
|
@@ -16,7 +16,7 @@ __all__ = (
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
-class TunnelGroup(OrganizationalModel):
|
|
|
|
|
|
|
+class TunnelGroup(ContactsMixin, OrganizationalModel):
|
|
|
"""
|
|
"""
|
|
|
An administrative grouping of Tunnels. This can be used to correlate peer-to-peer tunnels which form a mesh,
|
|
An administrative grouping of Tunnels. This can be used to correlate peer-to-peer tunnels which form a mesh,
|
|
|
for example.
|
|
for example.
|
|
@@ -27,7 +27,7 @@ class TunnelGroup(OrganizationalModel):
|
|
|
verbose_name_plural = _('tunnel groups')
|
|
verbose_name_plural = _('tunnel groups')
|
|
|
|
|
|
|
|
|
|
|
|
|
-class Tunnel(PrimaryModel):
|
|
|
|
|
|
|
+class Tunnel(ContactsMixin, PrimaryModel):
|
|
|
name = models.CharField(
|
|
name = models.CharField(
|
|
|
verbose_name=_('name'),
|
|
verbose_name=_('name'),
|
|
|
max_length=100,
|
|
max_length=100,
|