diff options
Diffstat (limited to 'lcm')
-rw-r--r-- | lcm/lcm/nf/serializers.py | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/lcm/lcm/nf/serializers.py b/lcm/lcm/nf/serializers.py index d3aefebd..2150c93b 100644 --- a/lcm/lcm/nf/serializers.py +++ b/lcm/lcm/nf/serializers.py @@ -283,7 +283,7 @@ class instantiatedVnfInfoSerializer(serializers.Serializer): allow_null=True) vnfState = serializers.ChoiceField( help_text="vnfState", - choices=["STARTED", "STOPPED"], + choices=["STARTED", "STOPPED", "NOT_INSTANTIATED", "INSTANTIATED"], required=True, allow_null=True) scaleStatus = ScaleInfoSerializer( @@ -334,12 +334,14 @@ class VnfInfoSerializer(serializers.Serializer): help_text="vnfdVersion", required=False, max_length=255, - allow_null=True) + allow_null=True, + allow_blank=True) vnfProvider = serializers.CharField( help_text="vnfProvider", required=False, max_length=255, - allow_null=True) + allow_null=True, + allow_blank=True) instantiatedVnfInfo = instantiatedVnfInfoSerializer( help_text="instantiatedVnfInfo", required=True) @@ -382,6 +384,11 @@ class ExtVirtualLinkSerizlizer(serializers.Serializer): class AdditionalParamsSerializer(serializers.Serializer): + vimId = serializers.CharField( + help_text="vimId", + required=False, + max_length=255, + allow_null=True) inputs = serializers.DictField( help_text="inputs", child=serializers.CharField(help_text="custom key-value", allow_blank=True), @@ -410,6 +417,11 @@ class InstantiateVnfRequestSerializer(serializers.Serializer): required=True, max_length=255, allow_null=True) + vnfmId = serializers.CharField( + help_text="vnfmId", + required=False, + max_length=255, + allow_null=True) extVirtualLinks = serializers.ListSerializer( help_text="extVirtualLinks", child=ExtVirtualLinkSerizlizer(help_text="extVirtualLinks", required=False, allow_null=True), |