aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfujinhua <fu.jinhua@zte.com.cn>2018-11-16 08:56:04 +0800
committerFu Jinhua <fu.jinhua@zte.com.cn>2018-11-16 02:24:42 +0000
commitcfda603855abe481d68be5b7bc50d96dae046869 (patch)
tree0e18664a5a29fdfeffd7f4020027b5900c161c97
parent30bb2818623f2d22bfad2c784438ca71c9eb0dde (diff)
Fix Ns instant req swagger
Change-Id: If33b11b1a5237dc32bf1d9aab999ff373bb4f98a Issue-ID: VFC-1163 Signed-off-by: fujinhua <fu.jinhua@zte.com.cn> (cherry picked from commit 41e210943f866c82382efe693939fdf04c4f673f)
-rw-r--r--lcm/ns/serializers/ns_serializers.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lcm/ns/serializers/ns_serializers.py b/lcm/ns/serializers/ns_serializers.py
index 041948bb..c9216f54 100644
--- a/lcm/ns/serializers/ns_serializers.py
+++ b/lcm/ns/serializers/ns_serializers.py
@@ -72,13 +72,13 @@ class QueryNsRespSerializer(serializers.Serializer):
nsState = serializers.CharField(help_text="State of NS instance", required=False, allow_null=True)
-class VimSerializer(serializers.Serializer):
+class VnfLocationSerializer(serializers.Serializer):
vimId = serializers.CharField(help_text="ID of VIM", required=False, allow_null=True)
class LocationConstraintSerializer(serializers.Serializer):
vnfProfileId = serializers.CharField(help_text="ID of VNF profile", required=False, allow_null=True)
- locationConstraints = VimSerializer(help_text="Location constraint", required=False, allow_null=True)
+ locationConstraints = VnfLocationSerializer(help_text="Location constraint", required=False, allow_null=True)
class AddressRange(serializers.Serializer):