diff options
Diffstat (limited to 'components/pm-subscription-handler/pmsh_service/mod/api/db_models.py')
-rwxr-xr-x | components/pm-subscription-handler/pmsh_service/mod/api/db_models.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/components/pm-subscription-handler/pmsh_service/mod/api/db_models.py b/components/pm-subscription-handler/pmsh_service/mod/api/db_models.py index b6735cc9..ea9603ef 100755 --- a/components/pm-subscription-handler/pmsh_service/mod/api/db_models.py +++ b/components/pm-subscription-handler/pmsh_service/mod/api/db_models.py @@ -60,6 +60,7 @@ class NetworkFunctionModel(db.Model): ip_address = Column(String(50)) model_invariant_id = Column(String(100)) model_version_id = Column(String(100)) + model_name = Column(String(100)) sdnc_model_name = Column(String(100)) sdnc_model_version = Column(String(100)) @@ -68,12 +69,14 @@ class NetworkFunctionModel(db.Model): cascade='all, delete-orphan', backref='nf') - def __init__(self, nf_name, ip_address, model_invariant_id, model_version_id, sdnc_model_name, + def __init__(self, nf_name, ip_address, model_invariant_id, + model_version_id, model_name, sdnc_model_name, sdnc_model_version): self.nf_name = nf_name self.ip_address = ip_address self.model_invariant_id = model_invariant_id self.model_version_id = model_version_id + self.model_name = model_name self.sdnc_model_name = sdnc_model_name self.sdnc_model_version = sdnc_model_version @@ -128,5 +131,6 @@ class NfSubRelationalModel(db.Model): 'nf_sub_status': self.nf_sub_status, 'model_invariant_id': nf.model_invariant_id, 'model_version_id': nf.model_version_id, + 'model_name': nf.model_name, 'sdnc_model_name': nf.sdnc_model_name, 'sdnc_model_version': nf.sdnc_model_version} |