diff options
author | yangyan <yangyanyj@chinamobile.com> | 2019-03-14 15:11:19 +0800 |
---|---|---|
committer | yangyan <yangyanyj@chinamobile.com> | 2019-03-14 15:11:30 +0800 |
commit | b95fcbb6d37a0c0a89ad9210749657b0baa4c03d (patch) | |
tree | aedc22e720cb2e01d533824ad9085952697594c1 | |
parent | 51a6d1ee5fdf64c87215f3381e29eb0a70d08fde (diff) |
fix the serializer bug
Change-Id: I883fec26a88bf0f704ab33165d2b1595f1812c4e
Issue-ID: VFC-1270
Signed-off-by: yangyan <yangyanyj@chinamobile.com>
-rw-r--r-- | lcm/ns/serializers/create_ns_serializers.py | 11 |
1 files 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): |