From edf98746a52408386efab26143778198b0efd3c5 Mon Sep 17 00:00:00 2001 From: dhebeha Date: Sat, 5 Sep 2020 20:16:48 +0530 Subject: Add support to process NSI selection request Issue-ID: OPTFRA-802 Signed-off-by: dhebeha Signed-off-by: krishnaa96 Change-Id: I85d951061abc697714425bd223b89102d4f2ede9 --- apps/slice_selection/models/api/nsi_selection_request.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'apps/slice_selection/models') 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() -- cgit 1.2.3-korg