Skip to content
This repository has been archived by the owner on Feb 21, 2023. It is now read-only.

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
TheWall89 committed Dec 28, 2020
2 parents 24a5633 + eef73aa commit 5651369
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions adaptation_layer/driver/fivegr_so.py
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,7 @@ def __init__(self, vnfdId="", vnfProfileId="", vnfInstanceId="", affinityOrAntiA
class SOL005NSInstance:
def __init__(self, id="", nsInstanceName="", nsInstanceDescription="", nsdId="", nsdInfoId="", flavourId="",
vnfInstance=None, pnfInfo=None, virtualLinkInfo=None, vnffgInfo=None, sapInfo=None,
nestedNsInstanceId="", nsState="", monitoringParameter=None, nsScaleStatus=None,
nestedNsInstanceId=None, nsState="", monitoringParameter=None, nsScaleStatus=None,
additionalAffinityOrAntiAffinityRule=None, **kwargs):
self.id: str = id
self.nsInstanceName: str = nsInstanceName
Expand All @@ -799,16 +799,14 @@ def __init__(self, id="", nsInstanceName="", nsInstanceDescription="", nsdId="",
[self.vnffgInfo.append(SOL005VnffgInfo(**element)) for element in vnffgInfo or []]
self.sapInfo: List[SOL005SapInfo] = []
[self.sapInfo.append(SOL005SapInfo(**element)) for element in sapInfo or []]
self.nestedNsInstanceId: str = nestedNsInstanceId
self.nestedNsInstanceId: List[str] = []
[self.nestedNsInstanceId.append(element) for element in nestedNsInstanceId or []]
self.nsState: str = nsState
self.monitoringParameter = monitoringParameter
self.nsScaleStatus: SOL005NsScaleInfo = SOL005NsScaleInfo()
if nsScaleStatus is not None:
self.nsScaleStatus: SOL005NsScaleInfo = SOL005NsScaleInfo(**nsScaleStatus)
self.additionalAffinityOrAntiAffinityRule: SOL005AffinityOrAntiAffinityRule = SOL005AffinityOrAntiAffinityRule()
if additionalAffinityOrAntiAffinityRule is not None:
self.additionalAffinityOrAntiAffinityRule: SOL005AffinityOrAntiAffinityRule = SOL005AffinityOrAntiAffinityRule(
**additionalAffinityOrAntiAffinityRule)
self.nsScaleStatus: List[SOL005NsScaleInfo] = []
[self.nsScaleStatus.append(SOL005NsScaleInfo(**element)) for element in nsScaleStatus or []]
self.additionalAffinityOrAntiAffinityRule: List[SOL005AffinityOrAntiAffinityRule] = []
[self.additionalAffinityOrAntiAffinityRule.append(SOL005AffinityOrAntiAffinityRule(**element)) for element in additionalAffinityOrAntiAffinityRule or []]


class SOL005SapData:
Expand Down

0 comments on commit 5651369

Please sign in to comment.