Fix Pnf data of in instant req swagger 67/72867/1
authorfujinhua <fu.jinhua@zte.com.cn>
Fri, 16 Nov 2018 03:03:15 +0000 (11:03 +0800)
committerfujinhua <fu.jinhua@zte.com.cn>
Fri, 16 Nov 2018 03:03:15 +0000 (11:03 +0800)
Change-Id: Iae7dc3c868a4ddb029d23f4b21d9359bb8404410
Issue-ID: VFC-1163
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
lcm/ns/serializers/ns_serializers.py

index c9216f5..136f5a4 100644 (file)
@@ -94,7 +94,7 @@ class IpAddress(serializers.Serializer):
     subnetId = serializers.CharField(help_text="Subnet defined by the identifier of the subnet resource in the VIM.", required=False)
 
 
     subnetId = serializers.CharField(help_text="Subnet defined by the identifier of the subnet resource in the VIM.", required=False)
 
 
-class IpOverEthernetAddressData(serializers.Serializer):
+class IpOverEthernetSerializer(serializers.Serializer):
     macAddress = serializers.CharField(help_text="MAC address.", required=False)
     ipAddresses = IpAddress(help_text="List of IP addresses to assign to the extCP instance.", required=False, many=True)
 
     macAddress = serializers.CharField(help_text="MAC address.", required=False)
     ipAddresses = IpAddress(help_text="List of IP addresses to assign to the extCP instance.", required=False, many=True)
 
@@ -105,7 +105,7 @@ class CpProtocolInfoSerializer(serializers.Serializer):
         choices=["IP_OVER_ETHERNET"],
         required=True,
         allow_null=False)
         choices=["IP_OVER_ETHERNET"],
         required=True,
         allow_null=False)
-    ipOverEthernet = IpOverEthernetAddressData(
+    ipOverEthernet = IpOverEthernetSerializer(
         help_text="IP addresses over Ethernet to assign to the extCP instance.",
         required=False,
         allow_null=True)
         help_text="IP addresses over Ethernet to assign to the extCP instance.",
         required=False,
         allow_null=True)