diff options
author | dhebeha <dhebeha.mj71@wipro.com> | 2020-09-05 20:16:48 +0530 |
---|---|---|
committer | Vikas Varma <vikas.varma@att.com> | 2020-09-18 19:34:01 +0000 |
commit | edf98746a52408386efab26143778198b0efd3c5 (patch) | |
tree | adc101beb879a57547cc828283803bfe7c5fd89b /apps/slice_selection/models | |
parent | f9b3575cae2b521ba8c6b6b30b15c89bd8a1cb48 (diff) |
Add support to process NSI selection request
Issue-ID: OPTFRA-802
Signed-off-by: dhebeha <dhebeha.mj71@wipro.com>
Signed-off-by: krishnaa96 <krishna.moorthy6@wipro.com>
Change-Id: I85d951061abc697714425bd223b89102d4f2ede9
Diffstat (limited to 'apps/slice_selection/models')
-rw-r--r-- | apps/slice_selection/models/api/nsi_selection_request.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/apps/slice_selection/models/api/nsi_selection_request.py b/apps/slice_selection/models/api/nsi_selection_request.py index 943fa56..b395012 100644 --- a/apps/slice_selection/models/api/nsi_selection_request.py +++ b/apps/slice_selection/models/api/nsi_selection_request.py @@ -17,8 +17,14 @@ # from osdf.models.api.common import OSDFModel -from schematics.types import BaseType, StringType, URLType, IntType, BooleanType -from schematics.types.compound import ModelType, ListType, DictType +from schematics.types import BaseType +from schematics.types import BooleanType +from schematics.types.compound import DictType +from schematics.types.compound import ListType +from schematics.types.compound import ModelType +from schematics.types import IntType +from schematics.types import StringType +from schematics.types import URLType class RequestInfo(OSDFModel): @@ -50,7 +56,7 @@ class NSISelectionAPI(OSDFModel): """Request for nsi selection (specific to optimization and additional metadata""" requestInfo = ModelType(RequestInfo, required=True) NSTInfo = ModelType(NxTInfo, required=True) - NSSTInfo = ListType(ModelType(NxTInfo), required=True) + NSSTInfo = ListType(ModelType(NxTInfo), required=False) serviceProfile = DictType(BaseType, required=True) subnetCapabilities = ListType(ModelType(SubnetCapability), required=True) preferReuse = BooleanType() |