Commit 21f54486 authored by Hugo LEVY-FALK's avatar Hugo LEVY-FALK

Fix switch creation

parent 71dc9c9b
...@@ -304,7 +304,7 @@ class Switch(AclMixin, Machine): ...@@ -304,7 +304,7 @@ class Switch(AclMixin, Machine):
@cached_property @cached_property
def get_name(self): 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 @cached_property
def get_radius_key(self): def get_radius_key(self):
......
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