3 ##Quick Start on the same machine:
5 Tested on Ubuntu 14.04 and OS X El Capitan
8 sudo pip install tosca-parser
10 ###Start Domino Server:
11 ./DominoServer.py --log=DEBUG
13 ###Start the first Domino Client:
14 ./DominoClient.py -p 9091 --log=DEBUG
16 ###Start the second Domino Client:
17 ./DominoClient.py -p 9092
19 ##CLI at the Domino Client:
24 ###subscribe for policy labels
25 subscribe -l/--label <policytype>:properties:key:value
28 First checkout the tosca file "./tosca-templates/tosca_helloworld_nfv.yaml" and see how policy types and rules are defined. Then, from any Domino Client, use subscribe command as:
30 subscribe --label tosca.policies.Placement.Geolocation:properties:region:us-west-1
32 ###publish default template file under tosca-templates
33 publish --tosca-file <path_to_toscafile>
36 Run the following command from any Domino Client:
38 publish --tosca-file ./tosca-templates/tosca_helloworld_nfv.yaml
40 Now, inspect the files generated under ./toscafiles, where the original file as well as parts sent to each Domino Client are shown (each part identified by UDID assigned to that client)
43 If accidentally you start DominoClient before DominoServer, don't panic. First start the DominoServer and then input the command on the DominoClient side: