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 Note: if --log option is ommitted, the default logging level is Warning messages
18 ###Start the second Domino Client:
19 ./DominoClient.py -p 9092 --log=DEBUG
21 ##CLI at the Domino Client:
26 ###subscribe for policy labels
27 subscribe -l/--label <policytype>:properties:key:value
30 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:
32 subscribe --label tosca.policies.Placement.Geolocation:properties:region:us-west-1
34 ###publish default template file under tosca-templates
35 publish --tosca-file <path_to_toscafile>
38 Run the following command from any Domino Client:
40 publish --tosca-file ./tosca-templates/tosca_helloworld_nfv.yaml
42 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)
45 If accidentally you start DominoClient before DominoServer, don't panic. First start the DominoServer and then input the command on the DominoClient side: