ms_srs: refactor UE state getter functions
rename UE helper functions to query RRC connected/idle state
and adapt tests accordingly
also add helper to retrieve assinged IP address
Change-Id: I6cd057e34b4df6a1a73695355dd6406d7e039546
diff --git a/src/osmo_gsm_tester/obj/ms.py b/src/osmo_gsm_tester/obj/ms.py
index e74377d..b39d3ee 100644
--- a/src/osmo_gsm_tester/obj/ms.py
+++ b/src/osmo_gsm_tester/obj/ms.py
@@ -77,6 +77,20 @@
raise log.Error('MS type not supported:', ms_type)
return ms_class(testenv, conf)
+ @abstractmethod
+ def is_registered(self, mcc_mnc=None):
+ '''Check whether MS is considered registered with the target network. In
+ 2G networks, and MS is registered if it had a successful Location Update
+ in CS. In 4G networks, an UE is considered registered with the core
+ network if it has obtained and IP address. If MCC/MNC are given it tries
+ to manually register against that specific network.'''
+ pass
+
+ @abstractmethod
+ def get_assigned_addr(self, ipv6=False):
+ ''' Returns last assigned IP address '''
+ pass
+
###################
# PUBLIC (test API included)
###################