2 Documentation In a new deployment of sdnc, ves collector and message router
3 ... the first pnf registration request fails.
4 ... Therefore some requets are send to ensure proper working of the use case
5 ... VES endpoint details test environemnt variable file <environment>.py
6 ... as dictionary NETWORK_FUNCTIONS = {}, VESCOLLECTOR ={}
10 Library SDNCBaseLibrary
11 Library NTSimManagerNG
15 Suite Setup global suite setup &{GLOBAL_SUITE_SETUP_CONFIG}
16 Suite Teardown global suite teardown
20 ${DEVICE_TYPE} O_RAN_FH
21 ${CHECK_CONNECTION_STATUS} Connected
23 ${PNF_REGISTRATION_TIMEOUT} 60s
25 ${TIME_PERIOD_SEND_NOTIF} 30s
28 Add Network Function O-RAN-FH in connectApp
29 [Tags] healthcheck sim
30 [Documentation] add nf as network element connection and verifies connection status
32 ConnectApp.add_network_element_connection_from_dict ${NETWORK_FUNCTIONS['${DEVICE_TYPE}']} check_connection_status=${CHECK_CONNECTION_STATUS}
34 Send pnf registration request to VES collector
35 [Tags] healthcheck sim
36 [Documentation] set details for VES endpoint details and
37 ... send pnf registration requests
39 NTSimManagerNG.set_ves_endpoint_details_nf ${NETWORK_FUNCTIONS['${DEVICE_TYPE}']['NAME']}
40 ... ves-endpoint-ip=${VESCOLLECTOR}[IP]
41 ... ves-endpoint-port=${VESCOLLECTOR}[PORT]
42 ... ves-endpoint-auth-method=${VESCOLLECTOR}[AUTHMETHOD]
43 ... ves-endpoint-username=${VESCOLLECTOR}[USERNAME]
44 ... ves-endpoint-password=${VESCOLLECTOR}[PASSWORD]
45 NTSimManagerNG.set_ves_config_nf ${NETWORK_FUNCTIONS['${DEVICE_TYPE}']['NAME']}
46 ... pnf-registration=${True}
48 Send VES notifications
49 [Tags] healthcheck sim
50 [Documentation] send some notifications for VES messages
51 NTSimManagerNG.set_ves_config_nf ${NETWORK_FUNCTIONS['${DEVICE_TYPE}']['NAME']} faults-enabled=${True}
52 NTSimManagerNG.set_fault_delay_list_nf ${NETWORK_FUNCTIONS['${DEVICE_TYPE}']['NAME']} delay-period=${FAULT_DELAY}
53 Log Send notification every ${FAULT_DELAY} sec for ${TIME_PERIOD_SEND_NOTIF} level=INFO html=False console=True repr=False
54 Sleep ${TIME_PERIOD_SEND_NOTIF}
55 NTSimManagerNG.set_fault_delay_list_nf ${NETWORK_FUNCTIONS['${DEVICE_TYPE}']['NAME']} delay-period=${0}
56 NTSimManagerNG.set_ves_config_nf ${NETWORK_FUNCTIONS['${DEVICE_TYPE}']['NAME']} faults-enabled=${False}
58 Remove mounted devices
59 [Documentation] cleanup all mounted devices
60 [Tags] healthcheck sim
61 NTSimManagerNG.set_ves_config_nf ${NETWORK_FUNCTIONS['${DEVICE_TYPE}']['NAME']}
62 ... pnf-registration=${False}
63 ConnectApp.remove_network_element_connection_filtered validate=${True} node-id=.*