diff options
| author | Phil Wise <phil@advancedtelematic.com> | 2018-03-19 16:31:31 +0100 |
|---|---|---|
| committer | Phil Wise <phil@advancedtelematic.com> | 2018-03-19 16:31:31 +0100 |
| commit | fc8f9b4b1721a029a30bf41e6086cfbff085089d (patch) | |
| tree | 1251f3656efe0504f1cefec590fe2a6280a1e5ac /scripts/run-qemu-ota | |
| parent | c3c8d56af6daac3c1eb38118f683db430af48d63 (diff) | |
| download | meta-updater-fc8f9b4b1721a029a30bf41e6086cfbff085089d.tar.gz | |
Add a --secondary-network option to run-qemu-ota
This sets up a simulated 'in vehicle' network. Add support for a Primary node
with a DHCP server and a secondary node with a DHCP client.
Diffstat (limited to 'scripts/run-qemu-ota')
| -rwxr-xr-x | scripts/run-qemu-ota | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/run-qemu-ota b/scripts/run-qemu-ota index 56e4fbc..b2f55e9 100755 --- a/scripts/run-qemu-ota +++ b/scripts/run-qemu-ota | |||
| @@ -33,6 +33,9 @@ def main(): | |||
| 33 | help='Use an overlay storage image file. Will be created if it does not exist. ' + | 33 | help='Use an overlay storage image file. Will be created if it does not exist. ' + |
| 34 | 'This option lets you have a persistent image without modifying the underlying image ' + | 34 | 'This option lets you have a persistent image without modifying the underlying image ' + |
| 35 | 'file, permitting multiple different persistent machines.') | 35 | 'file, permitting multiple different persistent machines.') |
| 36 | parser.add_argument('--secondary-network', action='store_true', dest='secondary_network', | ||
| 37 | help='Give the image a second network card connected to a virtual network. ' + | ||
| 38 | 'This can be used to test Uptane Primary/Secondary communication.') | ||
| 36 | parser.add_argument('-n', '--dry-run', help='Print qemu command line rather then run it', action='store_true') | 39 | parser.add_argument('-n', '--dry-run', help='Print qemu command line rather then run it', action='store_true') |
| 37 | args = parser.parse_args() | 40 | args = parser.parse_args() |
| 38 | try: | 41 | try: |
