@startuml
Autonumber
Skinparam sequenceArrowThickness 2
Skinparam sequenceArrowColor Black
skinparam ParticipantPadding 5
skinparam BoxPadding 10
skinparam roundcorner 15

Box “User Space” #lightblue
   Actor FT as “Tester”
   Actor OTF as “OTF” <<INT>>
End box

Box "SMO/Non-RT RIC Framework" #gold
   participant MR as "Message-Router" <<OAM>>
   participant VES as "VES-Collector" <<SMO>>
   participant OAM as "OAM-Controller" <<OAM>>
   Participant rAPP as “Link Monitor” <<NonrtRIC>>
   Participant DHCP as “DHCP” <<SMO>>
   Participant CA as “CA” <<INT>>
end box

Box “O-CU” #lightpink
   Participant OCUCP as “O-CU-CP” 
end box

Box “O-DU” #lightpink
   Participant ODUH as “O-DU-High” 
   Participant ODUL as “O-DU-Low” 
end box

Box “O-RU” #lightpink
   Participant ORU as “O-RU” 
end box

=== Begin Use Case ==

OTF –[#red]> OAM : Edit DU Config to disable CUS
OAM –[#blue]> ODUH : <<O1>> Edit-Config
ODUH -> ODUL : <<FAPI>> Link Stop
ODUL -> ODUH : <<FAPI>> Link Status
ODUH -> OCUCP : <<F1c>> Cell Status
ODUH --> OAM : edit-config Complete
OAM --> OTF : 200 OK
ORU –[#blue]>> OAM : <<FHMP>> Alarm Notify (Link Failure)
OAM -[#blue]> VES : <<O1>> Fault Notify (Fault)

VES -[#blue]> MR : Publish Fault Notification (Fault)
OTF –[#red]> MR : Get Event (Fault)
Note right OTF : Alarm Triggered seek Clear
=== Detect ==
rAPP -[#blue]-> MR : Get Event (Fault)
rAPP -> rAPP :
Note Left : Filter for CUS Link Failure alarm
Alt if Link Failure Detected
=== Act ==
rAPP -[#blue]> OAM :ODU Config for Link Enable
OAM –[#blue]> ODUH : <<O1>> Edit-Config
Group CUS Link Establishment
Note over OCUCP,ODUL
See processing block on ODU Init
End note
end
ODUH --> OAM : edit-config Complete
OAM --> rAPP : 200 OK
ORU ->> OAM : <<FHMP>> Alarm Notify (Clear)
OAM -[#blue]> VES : <<O1>> Fault Notify (Clear)
VES –[#blue]> MR : Publish Fault Notification (Clear)
=== Verify ==
rAPP -[#blue]-> MR : Get Event (Clear)
rAPP -> rAPP :
Note Left : Use Clear to Verify Loop Action Successful
end
OTF –[#red]> MR : Get Event (Clear)
OTF -> FT : Test Complete

@enduml