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