Change-Id: Iae7dc3c868a4ddb029d23f4b21d9359bb8404410
Issue-ID: VFC-1163
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
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)
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)