Commit 4e2f426c authored by Gabriel Detraz's avatar Gabriel Detraz Committed by chirac

Short name ap

parent d6cc00c9
......@@ -41,6 +41,7 @@ import itertools
from django.db import models
from django.db.models.signals import post_save, post_delete
from django.utils.functional import cached_property
from django.dispatch import receiver
from django.core.exceptions import ValidationError
from django.db import IntegrityError
......@@ -123,6 +124,9 @@ class AccessPoint(AclMixin, Machine):
def __str__(self):
return str(self.interface_set.first())
def short_name(self):
return str(self.interface_set.first()
class Switch(AclMixin, Machine):
""" Definition d'un switch. Contient un nombre de ports (number),
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment