summaryrefslogtreecommitdiffstats
path: root/docs/architecture/plantuml/DownloadPoliciesToPDP.puml
blob: ceab8ab5f586de5ca48cf67576117dbf3b085786 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
@startuml

title Download Policies to PDP

actor User
database PolicyDB
participant PAP
participant DMaaP
participant PDP

autonumber

alt PDP Startup
  PDP --> PAP: Send Status (initial status) to PAP
else Update Request from User
  User --> PAP : Update Policies on PDP
end

PAP --> PolicyDB: Read PDP metadata and Policy Set
PAP -> PAP: Prepare for PDP update
activate PAP
deactivate PAP

PAP --> PDP: Set PDP mode as PASSIVE

PAP --> PDP: Transfer Policy Set Policies to PDP

activate PDP
PDP --> PDP: Load Policies
deactivate PDP

alt PDP Mode should be ACTIVE
  PAP --> PDP : Set PDP mode as ACTIVE
  ref over PDP: Execute Policies in\nACTIVE Mode
else PDP Mode should be SAFE
  PAP --> PDP : Set PDP mode as SAFE
  ref over PDP: Execute Policies in\nSAFE Mode
else PDP Mode should be TEST
  PAP --> PDP : Set PDP mode as TEST
  ref over PDP: Execute Policies in\nTEST Mode
end

PAP --> PolicyDB: Update PDP metadata

@enduml