diff --git a/drawings/cisco asa/urls.puml b/drawings/cisco asa/urls.puml new file mode 100644 index 0000000..f6e568e --- /dev/null +++ b/drawings/cisco asa/urls.puml @@ -0,0 +1,12 @@ +@startuml +' map "URL без имени устройства" as no_man { +' usergate => manufacturer +' {pk} => Primary key of model instance in database +' } + +map "URL с конкретизацией имени устройства" as man { + cisco => manufacturer + asa => "Device name" + {pk} => Primary key of model instance in database +} +@enduml \ No newline at end of file diff --git a/drawings/cisco_ftd/frd_rules_any_any.puml b/drawings/cisco_ftd/frd_rules_any_any.puml index 0dc16d8..638a845 100644 --- a/drawings/cisco_ftd/frd_rules_any_any.puml +++ b/drawings/cisco_ftd/frd_rules_any_any.puml @@ -14,8 +14,8 @@ start - SN - DN - ACTION; -if (ACTION == либо "Allow" либо "Fast-path") then (Да) - if (SN пустое ∧ DN пустое = 1?) then (Да) +if ((ACTION == "Allow") ∨ (ACTION =="Fast-path") = 1?) then (Да) + if ((SN пустое) ∧ (DN пустое) = 1?) then (Да) :Значит у SN и DN стоят значение any; VALID @@ -59,7 +59,7 @@ if (ACTION == либо "Allow" либо "Fast-path") then (Да) stop endif endfork - if (SN any ∧ DN any = 1?) then (Да) + if ((SN any) ∧ (DN any) = 1?) then (Да) VALID end else (Нет) diff --git a/drawings/smc/notifications/frontend_flow.puml b/drawings/smc/notifications/frontend_flow.puml new file mode 100644 index 0000000..824fc51 --- /dev/null +++ b/drawings/smc/notifications/frontend_flow.puml @@ -0,0 +1,21 @@ +@startuml +Title Получение данных о SMTP серверах +actor Client +actor Frontend +participant Backend + +Client -> Frontend : Нажимаю на кнопку "SMTP сервера" +Frontend -> Backend : GET: /api/smtp/local +Backend -> Frontend : local SMTP server details +Frontend -> Backend : GET: /api/smtp/corporate +Backend -> Frontend : corporate SMTP server details +alt #palegreen LocalServer.is_active = False\n∧\nCorpServer.is_active = False +Frontend -> Client : Отобразить форму CorpServer +else #palegreen LocalServer.is_active = True\n∧\nCorpServer.is_active = False +Frontend -> Client : Отобразить форму LocalServer +else #palegreen LocalServer.is_active = False\n∧\nCorpServer.is_active = True +Frontend -> Client : Отобразить форму CorpServer +else #pink LocalServer.is_active = True\n∧\nCorpServer.is_active = True +Frontend -> Client : Отобразить ошибку настройки сервера +end +@enduml \ No newline at end of file diff --git a/drawings/smc/notifications/init_flow.puml b/drawings/smc/notifications/init_flow.puml new file mode 100644 index 0000000..716463d --- /dev/null +++ b/drawings/smc/notifications/init_flow.puml @@ -0,0 +1,9 @@ +@startuml +participant "Установочный пакет" as setup +participant Backend +database "SMC database" as SMC_db + +setup -> Backend : Инициировать запуск системы +Backend -> SMC_db : Создай экземпляр SmtpLocalServer\nis_active = False +Backend -> SMC_db : Создай экземпляр SmtpCorporateServer\nis_active = False +@enduml \ No newline at end of file diff --git a/drawings/smc/notifications/models.puml b/drawings/smc/notifications/models.puml new file mode 100644 index 0000000..32959a0 --- /dev/null +++ b/drawings/smc/notifications/models.puml @@ -0,0 +1,33 @@ +@startuml + +abstract SmtpServerModelABC { + host : CharField + host_user : CharField + is_active : BooleanField + is_auth_required : BooleanField + outbound_email : EmailField + password : CharField + port : IntegerField + security_protocol : CharField + ssl_cert_file : FileField + ssl_key_file : FileField + updated_at : DateTimeField + use_certificate : BooleanField +} + +abstract SingletonModel { + +} + +class SmtpLocalServer { + +} +SmtpServerModelABC <|-- SmtpLocalServer +SingletonModel <|-- SmtpLocalServer + +class SmtpCorporateServer { + +} +SmtpServerModelABC <|-- SmtpCorporateServer +SingletonModel <|-- SmtpCorporateServer +@enduml \ No newline at end of file