aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFu Jinhua <fu.jinhua@zte.com.cn>2018-10-17 05:08:16 +0000
committerGerrit Code Review <gerrit@onap.org>2018-10-17 05:08:16 +0000
commit81ab8c2fdf718be8dba673878cf5545493d91863 (patch)
tree4d376ed8e193d0a7f172219c963b21b8abd65f2a
parent1e6a4f81667870729f78355750fd065f0c7e7f1b (diff)
parent2f0220a1f7e86c54351cf297b123816c26950c80 (diff)
Merge "NS update swagger definition error"1.2.0
-rw-r--r--lcm/ns/serializers/update_serializers.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/lcm/ns/serializers/update_serializers.py b/lcm/ns/serializers/update_serializers.py
index fc3b6fb3..06217d80 100644
--- a/lcm/ns/serializers/update_serializers.py
+++ b/lcm/ns/serializers/update_serializers.py
@@ -12,6 +12,7 @@
# limitations under the License.
from rest_framework import serializers
+from lcm.ns.serializers.ns_serializers import IpAddress
class VnfInstanceDataSerializer(serializers.Serializer):
@@ -35,8 +36,7 @@ class InstantiateVnfDataSerializer(serializers.Serializer):
class IpOverEthernetAddressDataSerializer(serializers.Serializer):
macAddress = serializers.CharField(help_text="Mac address", required=False, allow_null=True)
- ipAddresses = serializers.ListField(help_text="List of IP addresses to assign to the extCP instance.",
- required=False, allow_null=True)
+ ipAddresses = serializers.ListField(help_text="List of IP addresses to assign to the extCP instance.", child=IpAddress(help_text="IP addresses to assign to the extCP instance.", required=False), required=False, allow_null=True)
class CpProtocolDataSerializer(serializers.Serializer):
@@ -94,8 +94,8 @@ class ExtVirtualLinkDataSerializer(serializers.Serializer):
"this resource.", required=False, allow_null=True)
resourceId = serializers.CharField(help_text="The identifier of the resource in the scope of the VIM or the"
" resource provider.", required=True)
- extCps = serializers.ListField(VnfExtCpData(help_text="External CPs of the VNF to be connected to this external "
- "VL.", required=True), required=False, allow_null=True)
+ extCps = serializers.ListField(child=VnfExtCpData(help_text="External CPs of the VNF to be connected to this external "
+ "VL.", required=True), required=False, allow_null=True)
extLinkPorts = serializers.ListField(help_text="Externally provided link ports to be used to connect external "
"connection points to this external VL. ",
child=(ExtLinkPortDataSerializer(help_text="This type represents an externally"