summaryrefslogtreecommitdiffstats
path: root/blueprint-generator/README.md
diff options
context:
space:
mode:
authorms236b <ms236b@att.com>2019-08-26 09:41:54 -0400
committerms236b <ms236b@att.com>2019-08-27 11:16:38 -0400
commit85fe98b96d6097369a107b7df79f75c0c2a10bc0 (patch)
treee6fe0a0264a023d53fd84a2d9f01a769657adb56 /blueprint-generator/README.md
parent68dd2713e43dd0e42df9d430e83500faab4449ac (diff)
Added the policy models to onap version
Added Policy model support to onap version, added header Issue-ID: DCAEGEN2-1684 Change-Id: Id41c3c72c07613ef68e33ba2c34ad62b84944e8d Signed-off-by: ms236b <ms236b@att.com>
Diffstat (limited to 'blueprint-generator/README.md')
-rw-r--r--blueprint-generator/README.md22
1 files changed, 22 insertions, 0 deletions
diff --git a/blueprint-generator/README.md b/blueprint-generator/README.md
index 1016bd8..55ffad9 100644
--- a/blueprint-generator/README.md
+++ b/blueprint-generator/README.md
@@ -58,3 +58,25 @@ This command will create a blueprint from the component spec TestComponentSpec.
- If you do not add a -n tag the blueprint name will default to what it is in the component spec
- If the directory you specified in the -p tag does not already exist the directory will be created for you
- The -t flag will override the default imports set for the blueprints. To see an example of how the import yaml file should be structured see the testImports.yaml file under the folder TestCases.
+
+
+#Instructions for policy models
+
+-Run the program on the command line with the following tags:
+OPTIONS:
+- -i: The path to the JSON spec file (required)
+- -p: The output path for all of the models (required)
+
+If you're on windows it will look like this:
+
+```bash
+java -cp "lib/blueprint-generator-onap-0.0.1-SNAPSHOT.jar;lib/*" org.onap.blueprintgenerator.core.PolicyCreate -p models -i ComponentSpecs/TestComponentSpec.json
+```
+
+If you're on linux it will look like this
+
+```bash
+java -cp blueprint-generator/lib/blueprint-generator-0.0.1-SNAPSHOT.jar:blueprint-generator/lib/* org.onap.blueprintgenerator.core.PolicyCreate -i ComponentSpecs/TestComponentSpec.json
+```
+
+This command will create a directory called models and put the policy models created from the component spec given in that directory. (A component spec may generate multiple policy models) \ No newline at end of file