summaryrefslogtreecommitdiffstats
path: root/components/pm-subscription-handler/pmsh_service/mod/subscription.py
diff options
context:
space:
mode:
authorefiacor <fiachra.corcoran@est.tech>2021-01-13 16:12:57 +0000
committerefiacor <fiachra.corcoran@est.tech>2021-01-26 16:47:26 +0000
commitf7be006e7cc638788164fb1028d03898138b8c16 (patch)
tree253d460ca148495d31203b9038b1e24ec209d7e9 /components/pm-subscription-handler/pmsh_service/mod/subscription.py
parent2510fa240ca7395ff8a36762d5892413ab05fd68 (diff)
[PMSH] Update sub object on activate
Signed-off-by: efiacor <fiachra.corcoran@est.tech> Change-Id: Id9418301e0cb4d373339b9b3e3476f7db5770f3e Issue-ID: DCAEGEN2-2152
Diffstat (limited to 'components/pm-subscription-handler/pmsh_service/mod/subscription.py')
-rwxr-xr-xcomponents/pm-subscription-handler/pmsh_service/mod/subscription.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/components/pm-subscription-handler/pmsh_service/mod/subscription.py b/components/pm-subscription-handler/pmsh_service/mod/subscription.py
index 8443c9de..fdc1394c 100755
--- a/components/pm-subscription-handler/pmsh_service/mod/subscription.py
+++ b/components/pm-subscription-handler/pmsh_service/mod/subscription.py
@@ -71,6 +71,12 @@ class Subscription:
self.measurementGroups = kwargs.get('measurementGroups')
self.create()
+ def update_sub_params(self, admin_state, file_based_gp, file_location, meas_groups):
+ self.administrativeState = admin_state
+ self.fileBasedGP = file_based_gp
+ self.fileLocation = file_location
+ self.measurementGroups = meas_groups
+
def create(self):
""" Creates a subscription database entry