blob: ceab8ab5f586de5ca48cf67576117dbf3b085786 [file] [log] [blame]
liamfallonc9e27902019-05-28 13:27:04 +00001@startuml
2
3title Download Policies to PDP
4
5actor User
6database PolicyDB
7participant PAP
8participant DMaaP
9participant PDP
10
11autonumber
12
13alt PDP Startup
14 PDP --> PAP: Send Status (initial status) to PAP
15else Update Request from User
16 User --> PAP : Update Policies on PDP
17end
18
19PAP --> PolicyDB: Read PDP metadata and Policy Set
20PAP -> PAP: Prepare for PDP update
21activate PAP
22deactivate PAP
23
24PAP --> PDP: Set PDP mode as PASSIVE
25
26PAP --> PDP: Transfer Policy Set Policies to PDP
27
28activate PDP
29PDP --> PDP: Load Policies
30deactivate PDP
31
32alt PDP Mode should be ACTIVE
33 PAP --> PDP : Set PDP mode as ACTIVE
34 ref over PDP: Execute Policies in\nACTIVE Mode
35else PDP Mode should be SAFE
36 PAP --> PDP : Set PDP mode as SAFE
37 ref over PDP: Execute Policies in\nSAFE Mode
38else PDP Mode should be TEST
39 PAP --> PDP : Set PDP mode as TEST
40 ref over PDP: Execute Policies in\nTEST Mode
41end
42
43PAP --> PolicyDB: Update PDP metadata
44
45@enduml