mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-22 11:23:10 +00:00
Renvoie le mode plain ou ssl pour webmanagement
This commit is contained in:
parent
27374d7a43
commit
b67ca07bd0
1 changed files with 8 additions and 1 deletions
|
@ -286,7 +286,14 @@ class Switch(AclMixin, Machine):
|
|||
|
||||
@cached_property
|
||||
def web_management_enabled(self):
|
||||
return OptionalTopologie.get_cached_value('switchs_web_management') or self.automatic_provision
|
||||
sw_management = OptionalTopologie.get_cached_value('switchs_web_management')
|
||||
sw_management_ssl = OptionalTopologie.get_cached_value('switchs_web_management_ssl')
|
||||
if sw_management_ssl:
|
||||
return "ssl"
|
||||
elif sw_management:
|
||||
return "plain"
|
||||
else:
|
||||
return self.automatic_provision
|
||||
|
||||
@cached_property
|
||||
def ipv4(self):
|
||||
|
|
Loading…
Reference in a new issue