Commit 1a2685f
committed
VM Base to be selectable by user
User can specify the VM base dyanmically during deploy the test environment.
1. add/remove topo - add a new argument to specify the VM Base nubmer
The usage will be ./testbed-cli.sh -b VM0108 add-topo 1-1_t0 ~/.password
2. deploy minigraph - fix to deploy correct VM METADAT in to minigraph when
user specify vm_base dynamically. The vm_base can be assgined from 2 sources,
one is read from testbed.csv file, another is from extra argument.
assigned from testbed.csv file
ansible-playbook -i lab config_sonic_basedon_testbed.yml -l as7816-64x -e testbed_name=2-1_t0 -e deploy=true -e save=true
assigned from extra arguments
ansible-playbook -i lab config_sonic_basedon_testbed.yml -l as7816-64x -e vm_base=VM0108 -e topo=t0 -e deploy=true -e save=true1 parent 7d99e36 commit 1a2685f
2 files changed
Lines changed: 27 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
82 | 87 | | |
83 | 88 | | |
84 | 89 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
28 | 37 | | |
29 | 38 | | |
30 | 39 | | |
| |||
90 | 99 | | |
91 | 100 | | |
92 | 101 | | |
93 | | - | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
94 | 108 | | |
95 | 109 | | |
96 | 110 | | |
| |||
325 | 339 | | |
326 | 340 | | |
327 | 341 | | |
| 342 | + | |
328 | 343 | | |
329 | | - | |
| 344 | + | |
330 | 345 | | |
331 | 346 | | |
332 | 347 | | |
| |||
340 | 355 | | |
341 | 356 | | |
342 | 357 | | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
343 | 361 | | |
344 | 362 | | |
345 | 363 | | |
| |||
0 commit comments