diff options
author | hongyuzhao <zhao.hongyu@zte.com.cn> | 2019-09-18 14:35:00 +0800 |
---|---|---|
committer | hongyuzhao <zhao.hongyu@zte.com.cn> | 2019-09-18 15:15:22 +0800 |
commit | d8019fdc8c1243f7c8bcf54921639333526f3749 (patch) | |
tree | 2dc6ba361a759e88149c18c82ef100040c3443d2 /lcm/lcm/pub/verifyvnfd/const.py | |
parent | 4ba359d8f83a8bb9b6648b53c1372fee101e5ba2 (diff) |
Add vnfd validity check
Change-Id: Ied8d1c044b2b6f883be48820eaf1d0eff47a19c3
Issue-ID: VFC-1490
Signed-off-by: hongyuzhao <zhao.hongyu@zte.com.cn>
Diffstat (limited to 'lcm/lcm/pub/verifyvnfd/const.py')
-rw-r--r-- | lcm/lcm/pub/verifyvnfd/const.py | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/lcm/lcm/pub/verifyvnfd/const.py b/lcm/lcm/pub/verifyvnfd/const.py index a5a3516f..f0ed9feb 100644 --- a/lcm/lcm/pub/verifyvnfd/const.py +++ b/lcm/lcm/pub/verifyvnfd/const.py @@ -184,9 +184,7 @@ vnfd_model1 = { "is_predefined": False, "is_shared": False }, - "image_file": [ - "volume_image" - ] + "image_file": "volume_image" } ], 'policies': { @@ -368,10 +366,15 @@ vnfd_model2 = { "connectivity_type": { "layer_protocol": "ipv4", }, - "dns_nameservers": "test", - "host_routes": "test", + "dns_nameservers": ["test"], + "host_routes": [ + { + "destination": "10.43.26.0/24", + "nexthop": "10.41.23.1" + } + ], }, - "route_external": "test", + "route_external": False, } ], "cps": [ @@ -795,7 +798,6 @@ vnfd_model3 = { } ], "vls": [ - ], "cps": [ { @@ -1099,7 +1101,7 @@ vnfd_model_miss_required = { "dns_nameservers": "test", "host_routes": "test", }, - "route_external": "test", + "route_external": False, } ], "cps": [ |