From b95fcbb6d37a0c0a89ad9210749657b0baa4c03d Mon Sep 17 00:00:00 2001 From: yangyan Date: Thu, 14 Mar 2019 15:11:19 +0800 Subject: fix the serializer bug Change-Id: I883fec26a88bf0f704ab33165d2b1595f1812c4e Issue-ID: VFC-1270 Signed-off-by: yangyan --- lcm/ns/serializers/create_ns_serializers.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lcm/ns/serializers/create_ns_serializers.py b/lcm/ns/serializers/create_ns_serializers.py index 347e7cfc..9162f971 100644 --- a/lcm/ns/serializers/create_ns_serializers.py +++ b/lcm/ns/serializers/create_ns_serializers.py @@ -14,7 +14,8 @@ from rest_framework import serializers -from lcm.ns.serializers.pub_serializers import Links, IpAddressSerialzier, ipAddressesSerializer +from lcm.ns.serializers.pub_serializers import IpOverEthernetAddressDataSerializer, Links, ipAddressesSerializer +# from lcm.ns.serializers.pub_serializers import Links, IpAddressSerialzier, ipAddressesSerializer class ContextSerializer(serializers.Serializer): @@ -37,10 +38,10 @@ class VnfInstanceSerializer(serializers.Serializer): allow_null=True) -class IpOverEthernetAddressDataSerializer(serializers.Serializer): - macAddress = serializers.CharField(help_text="Mac address", required=False, allow_null=True) - ipAddresses = IpAddressSerialzier(help_text="List of IP addresses to assign to the extCP instance.", - required=False, allow_null=True, many=True) +# class IpOverEthernetAddressDataSerializer(serializers.Serializer): +# macAddress = serializers.CharField(help_text="Mac address", required=False, allow_null=True) +# ipAddresses = IpAddressSerialzier(help_text="List of IP addresses to assign to the extCP instance.", +# required=False, allow_null=True, many=True) class cpProtocolDataSerializer(serializers.Serializer): -- cgit 1.2.3-korg