mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-27 07:02:26 +00:00
Fix switch creation
This commit is contained in:
parent
71dc9c9bd1
commit
21f54486b2
1 changed files with 1 additions and 1 deletions
|
@ -304,7 +304,7 @@ class Switch(AclMixin, Machine):
|
|||
|
||||
@cached_property
|
||||
def get_name(self):
|
||||
return self.name or self.main_interface().domain.name
|
||||
return self.name or getattr(self.main_interface(), 'domain', 'Unknown')
|
||||
|
||||
@cached_property
|
||||
def get_radius_key(self):
|
||||
|
|
Loading…
Reference in a new issue