summaryrefslogtreecommitdiffstats
path: root/lcm
diff options
context:
space:
mode:
authorying.yunlong <ying.yunlong@zte.com.cn>2018-01-27 16:48:36 +0800
committerying.yunlong <ying.yunlong@zte.com.cn>2018-01-27 16:48:36 +0800
commit27fffd87ef051b21bb006b690f94ad3e27c04fb6 (patch)
tree2852b2e00c55484fa35ed7b2c0d6fa299e3aa2f5 /lcm
parent1cce02e84e07f070730785c63dbfccaa498654e7 (diff)
Add vfc-vnflcm getVnfs schema
Change-Id: I91cc6360958e73e53e6cfc2577cb3a0979856dc3 Issue-ID: VFC-682 Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
Diffstat (limited to 'lcm')
-rw-r--r--lcm/lcm/nf/vnfs/serializers.py18
1 files changed, 16 insertions, 2 deletions
diff --git a/lcm/lcm/nf/vnfs/serializers.py b/lcm/lcm/nf/vnfs/serializers.py
index 975cb05e..cabae3b9 100644
--- a/lcm/lcm/nf/vnfs/serializers.py
+++ b/lcm/lcm/nf/vnfs/serializers.py
@@ -49,12 +49,26 @@ class ExtVirtualLinkInfoSerializer(serializers.Serializer):
pass
+class l3AddressDataSerializer(serializers.Serializer):
+ iPAddressType = serializers.ChoiceField(help_text="iPAddressType", choices=['IPv4', 'IPv6'], required=True)
+ iPAddress = serializers.CharField(help_text="iPAddress", required=True)
+
+
+class NetworkAddressSerializer(serializers.Serializer):
+ addressType = serializers.ChoiceField(help_text="addressType", choices=['MAC', 'IP'], required=True)
+ l2AddressData = serializers.CharField(help_text="l2AddressData", required=False)
+ l3AddressData = l3AddressDataSerializer(help_text="addresses", required=False)
+
+
class extCpInfoSerializer(serializers.Serializer):
- pass
+ cpInstanceId = serializers.CharField(help_text="cpInstanceId", required=True)
+ cpdId = serializers.IntegerField(help_text="cpdId", required=True)
+ addresses = NetworkAddressSerializer(help_text="addresses", many=True, allow_null=True)
class ScaleInfoSerializer(serializers.Serializer):
- pass
+ aspectId = serializers.CharField(help_text="aspectId", required=True)
+ scaleLevel = serializers.IntegerField(help_text="scaleLevel", required=True)
class instantiatedVnfInfoSerializer(serializers.Serializer):