diff options
author | fujinhua <fu.jinhua@zte.com.cn> | 2018-11-16 11:03:15 +0800 |
---|---|---|
committer | fujinhua <fu.jinhua@zte.com.cn> | 2018-11-16 11:03:15 +0800 |
commit | eabc459850ca03d0f4fe7eca39c679951c03bcb5 (patch) | |
tree | 05c5bdb6112720955ecccabd42501be858f977ec | |
parent | 424e502f9a98d7614b34e912c2149482cf63dea3 (diff) |
Fix Pnf data of in instant req swagger
Change-Id: Iae7dc3c868a4ddb029d23f4b21d9359bb8404410
Issue-ID: VFC-1163
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
-rw-r--r-- | lcm/ns/serializers/ns_serializers.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lcm/ns/serializers/ns_serializers.py b/lcm/ns/serializers/ns_serializers.py index c9216f54..136f5a43 100644 --- a/lcm/ns/serializers/ns_serializers.py +++ b/lcm/ns/serializers/ns_serializers.py @@ -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) -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) @@ -105,7 +105,7 @@ class CpProtocolInfoSerializer(serializers.Serializer): 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) |