add X2AP-PDU msg cnt to HTML
This commit is contained in:
+11
-1
@@ -792,6 +792,8 @@ class RANManagement():
|
|||||||
pb_receiving_samples_cnt = 0
|
pb_receiving_samples_cnt = 0
|
||||||
#count "removing UE" msg
|
#count "removing UE" msg
|
||||||
removing_ue = 0
|
removing_ue = 0
|
||||||
|
#count"X2AP-PDU"
|
||||||
|
x2ap_pdu = 0
|
||||||
#NSA specific log markers
|
#NSA specific log markers
|
||||||
nsa_markers ={'SgNBReleaseRequestAcknowledge': [],'FAILURE': [], 'scgFailureInformationNR-r15': [], 'SgNBReleaseRequest': []}
|
nsa_markers ={'SgNBReleaseRequestAcknowledge': [],'FAILURE': [], 'scgFailureInformationNR-r15': [], 'SgNBReleaseRequest': []}
|
||||||
|
|
||||||
@@ -993,7 +995,10 @@ class RANManagement():
|
|||||||
result = re.search('\[MAC\]\s+Removing UE', str(line))
|
result = re.search('\[MAC\]\s+Removing UE', str(line))
|
||||||
if result is not None:
|
if result is not None:
|
||||||
removing_ue += 1
|
removing_ue += 1
|
||||||
|
#count "X2AP-PDU"
|
||||||
|
result = re.search('X2AP-PDU', str(line))
|
||||||
|
if result is not None:
|
||||||
|
x2ap_pdu += 1
|
||||||
#nsa markers logging
|
#nsa markers logging
|
||||||
for k in nsa_markers:
|
for k in nsa_markers:
|
||||||
result = re.search(k, line)
|
result = re.search(k, line)
|
||||||
@@ -1087,6 +1092,11 @@ class RANManagement():
|
|||||||
htmlMsg = statMsg+'\n'
|
htmlMsg = statMsg+'\n'
|
||||||
logging.debug(statMsg)
|
logging.debug(statMsg)
|
||||||
htmleNBFailureMsg += htmlMsg
|
htmleNBFailureMsg += htmlMsg
|
||||||
|
#X2AP-PDU log
|
||||||
|
statMsg = 'X2AP-PDU msg count = '+str(x2ap_pdu)
|
||||||
|
htmlMsg = statMsg+'\n'
|
||||||
|
logging.debug(statMsg)
|
||||||
|
htmleNBFailureMsg += htmlMsg
|
||||||
#nsa markers
|
#nsa markers
|
||||||
statMsg = 'logfile line count = ' + str(line_cnt)
|
statMsg = 'logfile line count = ' + str(line_cnt)
|
||||||
htmlMsg = statMsg+'\n'
|
htmlMsg = statMsg+'\n'
|
||||||
|
|||||||
Reference in New Issue
Block a user