diff options
author | 2018-02-28 16:10:42 +0800 | |
---|---|---|
committer | 2018-02-28 16:10:42 +0800 | |
commit | e690bfe72356b4647b0453e5f7d07816fca2bb16 (patch) | |
tree | df5d521c1c8fdb94dd50f91873d49131b9769f8f | |
parent | 3c9595249ab1edc774af0ef936a78e868c1a5484 (diff) |
Add VnfExtCpConfig Serializer
Change-Id: I61d1de2818365c444f011b4c9b6cc9a829874845
Issue-ID: VFC-779
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
-rw-r--r-- | lcm/v2/serializers.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lcm/v2/serializers.py b/lcm/v2/serializers.py index 2abaad5f..20517a49 100644 --- a/lcm/v2/serializers.py +++ b/lcm/v2/serializers.py @@ -284,6 +284,25 @@ class CpProtocolDataSerializer(serializers.Serializer): ) +class VnfExtCpConfigSerializer(serializers.Serializer): + cpInstanceId = serializers.CharField( + help_text="Identifier of the external CP instance to which this set of configuration parameters is requested to be applied.", + required=False, + allow_null=True, + allow_blank=True + ) + linkPortId = serializers.CharField( + help_text="Identifier of a pre-configured link port to which the external CP will be associated.", + required=False, + allow_null=True, + allow_blank=True + ) + cpProtocolData = CpProtocolDataSerializer( + help_text="Parameters for configuring the network protocols on the link port that connects the CP to a VL.", + many=True + ) + + class GrantSerializer(serializers.Serializer): id = serializers.CharField( help_text="Identifier of the grant.", |