|
@@ -8,6 +8,7 @@ from django.utils.translation import gettext_lazy as _
|
|
|
from ipam.choices import *
|
|
from ipam.choices import *
|
|
|
from ipam.constants import *
|
|
from ipam.constants import *
|
|
|
from netbox.models import PrimaryModel
|
|
from netbox.models import PrimaryModel
|
|
|
|
|
+from netbox.models.features import ContactsMixin
|
|
|
from utilities.data import array_to_string
|
|
from utilities.data import array_to_string
|
|
|
|
|
|
|
|
__all__ = (
|
|
__all__ = (
|
|
@@ -62,7 +63,7 @@ class ServiceTemplate(ServiceBase, PrimaryModel):
|
|
|
return reverse('ipam:servicetemplate', args=[self.pk])
|
|
return reverse('ipam:servicetemplate', args=[self.pk])
|
|
|
|
|
|
|
|
|
|
|
|
|
-class Service(ServiceBase, PrimaryModel):
|
|
|
|
|
|
|
+class Service(ContactsMixin, ServiceBase, PrimaryModel):
|
|
|
"""
|
|
"""
|
|
|
A Service represents a layer-four service (e.g. HTTP or SSH) running on a Device or VirtualMachine. A Service may
|
|
A Service represents a layer-four service (e.g. HTTP or SSH) running on a Device or VirtualMachine. A Service may
|
|
|
optionally be tied to one or more specific IPAddresses belonging to its parent.
|
|
optionally be tied to one or more specific IPAddresses belonging to its parent.
|