aboutsummaryrefslogtreecommitdiffstats
path: root/test/mocks/mass-pnf-sim/README.md
diff options
context:
space:
mode:
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>2020-05-08 04:39:22 -0700
committerMarco Platania <platania@research.att.com>2020-05-11 19:25:09 +0000
commit6a09dd6c591612f7afc26d3a427c7e1ff85928e5 (patch)
tree016ede3ace99d6d8a6602b93fb9ed35852d6f2b3 /test/mocks/mass-pnf-sim/README.md
parentc981fa0f1062dcebd0f2fa01aff1ff58ecb302fc (diff)
Rework input parameters handling
Main input options were turned into subcommands for improved CLI user experience. Input parameters handling and validation logic was moved out of the code to argparse native facilities. Updated the doc around script usage details. Change-Id: Ifaa2a0e49f2a0b5b677020307dc74942c422bbe1 Issue-ID: INT-1577 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Diffstat (limited to 'test/mocks/mass-pnf-sim/README.md')
-rw-r--r--test/mocks/mass-pnf-sim/README.md14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/mocks/mass-pnf-sim/README.md b/test/mocks/mass-pnf-sim/README.md
index f997f56ad..0e6ac0364 100644
--- a/test/mocks/mass-pnf-sim/README.md
+++ b/test/mocks/mass-pnf-sim/README.md
@@ -18,7 +18,7 @@ For debug purposes, you can use your own IP address as VES collector, use "ip" c
Example:
```
-./mass-pnf-sim.py --bootstrap 2 --urlves http://10.148.95.??:10000/eventListener/v7 --ipfileserver 10.148.95.??? --typefileserver sftp --ipstart 10.11.0.16
+./mass-pnf-sim.py bootstrap --count 2 --urlves http://10.148.95.??:10000/eventListener/v7 --ipfileserver 10.148.95.??? --typefileserver sftp --ipstart 10.11.0.16
```
Note that the file creator is started at a time of the bootstrapping.
@@ -35,13 +35,13 @@ sudo nc -vv -l -k -p 10000
Define the amount of simulators to be launched
```
-./mass-pnf-sim.py --start 2
+./mass-pnf-sim.py start --count 2
```
### Trigger
```
-./mass-pnf-sim.py --trigger 2
+./mass-pnf-sim.py trigger --count 2
```
### Trigger only a subset of the simulators
@@ -49,20 +49,20 @@ Define the amount of simulators to be launched
The following command will trigger 0,1,2,3:
```
-./mass-pnf-sim.py --triggerstart 0 --triggerend 3
+./mass-pnf-sim.py trigger-custom --triggerstart 0 --triggerend 3
```
The following command will trigger 4 and 5:
```
-./mass-pnf-sim.py --triggerstart 4 --triggerend 5
+./mass-pnf-sim.py trigger-custom --triggerstart 4 --triggerend 5
```
### Stop and clean
```
-./mass-pnf-sim.py --stop 2
-./mass-pnf-sim.py --clean
+./mass-pnf-sim.py stop --count 2
+./mass-pnf-sim.py clean
```
### Verbose printout from Python