Merge remote-tracking branch 'origin/nr-fix-lte-x2ho' into develop-nr-integration-2019-w40
This commit is contained in:
+6
-1
@@ -978,6 +978,12 @@ class SSHConnection():
|
|||||||
if fullSyncStatus and gotSyncStatus and self.air_interface == 'lte':
|
if fullSyncStatus and gotSyncStatus and self.air_interface == 'lte':
|
||||||
result = re.search('--no-L2-connect', str(self.Initialize_OAI_UE_args))
|
result = re.search('--no-L2-connect', str(self.Initialize_OAI_UE_args))
|
||||||
if result is None:
|
if result is None:
|
||||||
|
self.command('ifconfig oaitun_ue1', '\$', 4)
|
||||||
|
result = re.search('inet addr', str(self.ssh.before))
|
||||||
|
if result is not None:
|
||||||
|
logging.debug('\u001B[1m oaitun_ue1 interface is mounted and configured\u001B[0m')
|
||||||
|
tunnelInterfaceStatus = True
|
||||||
|
else:
|
||||||
self.command('ifconfig oaitun_ue1', '\$', 4)
|
self.command('ifconfig oaitun_ue1', '\$', 4)
|
||||||
result = re.search('inet addr', str(self.ssh.before))
|
result = re.search('inet addr', str(self.ssh.before))
|
||||||
if result is not None:
|
if result is not None:
|
||||||
@@ -1807,7 +1813,6 @@ class SSHConnection():
|
|||||||
else:
|
else:
|
||||||
self.open(self.UEIPAddress, self.UEUserName, self.UEPassword)
|
self.open(self.UEIPAddress, self.UEUserName, self.UEPassword)
|
||||||
self.command('cd ' + self.UESourceCodePath + '/cmake_targets/', '\$', 5)
|
self.command('cd ' + self.UESourceCodePath + '/cmake_targets/', '\$', 5)
|
||||||
self.command('cd cmake_targets', '\$', 5)
|
|
||||||
ping_time = re.findall("-c (\d+)",str(self.ping_args))
|
ping_time = re.findall("-c (\d+)",str(self.ping_args))
|
||||||
ping_status = self.command('stdbuf -o0 ping ' + self.ping_args + ' 2>&1 | stdbuf -o0 tee ping_' + self.testCase_id + '.log', '\$', int(ping_time[0])*1.5)
|
ping_status = self.command('stdbuf -o0 ping ' + self.ping_args + ' 2>&1 | stdbuf -o0 tee ping_' + self.testCase_id + '.log', '\$', int(ping_time[0])*1.5)
|
||||||
# TIMEOUT CASE
|
# TIMEOUT CASE
|
||||||
|
|||||||
@@ -151,8 +151,8 @@ void x2ap_eNB_handle_sctp_association_resp(instance_t instance, sctp_new_associa
|
|||||||
printf("x2ap_eNB_handle_sctp_association_resp at 4\n");
|
printf("x2ap_eNB_handle_sctp_association_resp at 4\n");
|
||||||
dump_trees();
|
dump_trees();
|
||||||
/* Prepare new x2 Setup Request */
|
/* Prepare new x2 Setup Request */
|
||||||
x2ap_eNB_generate_ENDC_x2_setup_request(instance_p, x2ap_enb_data_p);
|
x2ap_eNB_generate_x2_setup_request(instance_p, x2ap_enb_data_p);
|
||||||
//x2ap_eNB_generate_x2_setup_request(instance_p, x2ap_enb_data_p);
|
//x2ap_eNB_generate_ENDC_x2_setup_request(instance_p, x2ap_enb_data_p);
|
||||||
}
|
}
|
||||||
|
|
||||||
static
|
static
|
||||||
|
|||||||
@@ -134,9 +134,9 @@ int x2ap_eNB_decode_pdu(X2AP_X2AP_PDU_t *pdu, const uint8_t *const buffer, uint3
|
|||||||
length,
|
length,
|
||||||
0,
|
0,
|
||||||
0);
|
0);
|
||||||
//if (asn1_xer_print) {
|
if (asn1_xer_print) {
|
||||||
xer_fprint(stdout, &asn_DEF_X2AP_X2AP_PDU, pdu);
|
xer_fprint(stdout, &asn_DEF_X2AP_X2AP_PDU, pdu);
|
||||||
//}
|
}
|
||||||
|
|
||||||
if (dec_ret.code != RC_OK) {
|
if (dec_ret.code != RC_OK) {
|
||||||
X2AP_ERROR("Failed to decode pdu\n");
|
X2AP_ERROR("Failed to decode pdu\n");
|
||||||
|
|||||||
@@ -44,9 +44,9 @@ int x2ap_eNB_encode_pdu(X2AP_X2AP_PDU_t *pdu, uint8_t **buffer, uint32_t *len)
|
|||||||
DevAssert(buffer != NULL);
|
DevAssert(buffer != NULL);
|
||||||
DevAssert(len != NULL);
|
DevAssert(len != NULL);
|
||||||
|
|
||||||
//if (asn1_xer_print) {
|
if (asn1_xer_print) {
|
||||||
xer_fprint(stdout, &asn_DEF_X2AP_X2AP_PDU, (void *)pdu);
|
xer_fprint(stdout, &asn_DEF_X2AP_X2AP_PDU, (void *)pdu);
|
||||||
//}
|
}
|
||||||
|
|
||||||
encoded = aper_encode_to_new_buffer(&asn_DEF_X2AP_X2AP_PDU, 0, pdu, (void **)buffer);
|
encoded = aper_encode_to_new_buffer(&asn_DEF_X2AP_X2AP_PDU, 0, pdu, (void **)buffer);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user