diff options
author | Jan Gelety <jgelety@cisco.com> | 2018-12-06 13:23:05 +0100 |
---|---|---|
committer | Jan Gelety <jgelety@cisco.com> | 2019-01-10 07:22:57 +0000 |
commit | 5f809dd2414d50fd6f229fc2ba2ff42d66df5dde (patch) | |
tree | d93ee2d7cfeef95eb21d4a999529030133ee2eee /resources/libraries/python/QemuUtils.py | |
parent | 852b10b6724f0ae221e45f1ccb3f8020077b1f33 (diff) |
VPP_Device - add baseline tests - part IIa)
CSIT-1372
Add following baseline tests to VPP_Device:
- ip4
eth2p-ethip4-ip4base-eth-2vhost-1vm-dev
- ip6
eth2p-ethip6-ip6base-eth-2vhost-1vm-dev
- l2bd
eth2p-eth-l2bdbasemaclrn-eth-2vhost-1vm-dev
- l2xc
eth2p-eth-l2xcbase-eth-2vhost-1vm-dev
+ fix doc strings in all vpp_device tests
Change-Id: Icc5ed801f3e8f6dedaa611779bd86fc20102fa74
Signed-off-by: Jan Gelety <jgelety@cisco.com>
Diffstat (limited to 'resources/libraries/python/QemuUtils.py')
-rw-r--r-- | resources/libraries/python/QemuUtils.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/resources/libraries/python/QemuUtils.py b/resources/libraries/python/QemuUtils.py index ff3a00f730..037d0de58c 100644 --- a/resources/libraries/python/QemuUtils.py +++ b/resources/libraries/python/QemuUtils.py @@ -1,4 +1,4 @@ -# Copyright (c) 2018 Cisco and/or its affiliates. +# Copyright (c) 2019 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: @@ -213,7 +213,10 @@ class QemuUtils(object): self._ssh = SSH() self._ssh.connect(node) self._vm_info['host'] = node['host'] - + if node['port'] != 22: + self._vm_info['host_port'] = node['port'] + self._vm_info['host_username'] = node['username'] + self._vm_info['host_password'] = node['password'] arch = Topology.get_node_arch(node) self._qemu_opt['qemu_bin'] = 'qemu-system-{arch}'.format(arch=arch) |