aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorGiulio Fidente <gfidente@redhat.com>2016-08-11 23:07:46 +0200
committerDan Prince <dprince@redhat.com>2016-08-18 12:36:18 -0400
commit885b37c80ecdae308289cc2e5c2a29dc66710487 (patch)
tree6966a6341d7fe810cd9f208b89a0da9a3929dbc6 /tools
parente59cef59b66f16338084213277cff6f61867efbf (diff)
Pass ServiceNetMap to services
This will be needed to pick the network where the service has to bind to from within the service template. Change-Id: I52652e1ad8c7b360efd2c7af199e35932aaaea8c
Diffstat (limited to 'tools')
-rwxr-xr-xtools/yaml-validate.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/yaml-validate.py b/tools/yaml-validate.py
index c93c84bc..2a6c4b3b 100755
--- a/tools/yaml-validate.py
+++ b/tools/yaml-validate.py
@@ -39,6 +39,13 @@ def validate_service(filename, tpl):
print('ERROR: service_name should match file name for service: %s.'
% filename)
return 1
+ if 'parameters' in tpl:
+ required_params = ['EndpointMap', 'ServiceNetMap']
+ for param in required_params:
+ if param not in tpl['parameters']:
+ print('ERROR: parameter %s is required for %s.'
+ % (param, filename))
+ return 1
return 0