corenet: more checks on RAN-initiated error ind PDU
This commit is contained in:
parent
6d713a1a9b
commit
fc5e50174c
|
@ -469,7 +469,7 @@ class HNBAPErrorIndHNB(HNBAPSigProc):
|
|||
|
||||
def recv(self, pdu_rx):
|
||||
self._recv(pdu_rx)
|
||||
if not self.errcause:
|
||||
if not self.errcause and 'Cause' in self.HNBInfo:
|
||||
self._log('WNG', 'error ind received: %s.%s' % self.HNBInfo['Cause'])
|
||||
# if it corresponds to a previously CN-initiated class 1 procedure
|
||||
# abort it
|
||||
|
|
|
@ -1572,7 +1572,7 @@ class NGAPErrorIndNonUERAN(NGAPNonUESigProc):
|
|||
|
||||
def recv(self, pdu):
|
||||
self._recv(pdu)
|
||||
if not self.errcause:
|
||||
if not self.errcause and 'Cause' in self.GNBInfo:
|
||||
self._log('WNG', 'error ind received: %r' % (self.GNBInfo['Cause'], ))
|
||||
# if it corresponds to a said-unknown UE ID, disconnect the UE instance
|
||||
if self.GNBInfo['Cause'] == ('radioNetwork', 'unknown-local-UE-NGAP-ID') \
|
||||
|
|
|
@ -2075,7 +2075,7 @@ class RANAPErrorIndRNC(RANAPSigProc):
|
|||
|
||||
def recv(self, pdu):
|
||||
self._recv(pdu)
|
||||
if not self.errcause is None:
|
||||
if not self.errcause is None and 'Cause' in self.UEInfo:
|
||||
self._log('WNG', 'error ind received: %s.%i' % self.UEInfo['Cause'])
|
||||
# if it corresponds to a previously CN-initiated class 1 procedure
|
||||
# abort it
|
||||
|
|
|
@ -1762,7 +1762,7 @@ class S1APErrorIndNonUEENB(S1APNonUESigProc):
|
|||
|
||||
def recv(self, pdu):
|
||||
self._recv(pdu)
|
||||
if not self.errcause:
|
||||
if not self.errcause and 'Cause' in self.ENBInfo:
|
||||
self._log('WNG', 'error ind received: %r' % (self.ENBInfo['Cause'], ))
|
||||
# if it corresponds to an said-unknown UE ID, disconnect the UE instance
|
||||
if self.ENBInfo['Cause'] == ('radioNetwork', 'unknown-enb-ue-s1ap-id') \
|
||||
|
|
Loading…
Reference in New Issue