diff options
author | Yichen Wang <yicwang@cisco.com> | 2017-12-13 15:01:34 -0800 |
---|---|---|
committer | Yichen Wang <yicwang@cisco.com> | 2018-01-02 11:19:28 -0800 |
commit | b481ad4a6c6b98cac760b12e4190f9540869e673 (patch) | |
tree | cb772d754ba27d244dadd3c086293784c8acc286 /nfvbench/chain_clients.py | |
parent | efc678c9d3843dcfd373b5749a88c51228b0b27c (diff) |
Multiple bugfixes for NFVbench
[NFVBENCH-52] NFVbench should ignore the port security settings if not
available
[NFVBENCH-53] NFVbench should support to use software mode for TRex
[NFVBENCH-54] NFVbench container should also map kernel sources when
available to build KOs
[NFVBENCH-55] Documentation enhancements to have better examples for
using "$PWD"
[NFVBENCH-57] NFVbench should support to build kernel modules on redhat
distros
Change-Id: Id6792d6711393b07ca59396c276a026bec9f1e86
Signed-off-by: Yichen Wang <yicwang@cisco.com>
Diffstat (limited to 'nfvbench/chain_clients.py')
-rw-r--r-- | nfvbench/chain_clients.py | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/nfvbench/chain_clients.py b/nfvbench/chain_clients.py index fa21359..7106129 100644 --- a/nfvbench/chain_clients.py +++ b/nfvbench/chain_clients.py @@ -346,13 +346,18 @@ class BasicStageClient(object): for net in self.nets: for port in self.ports[net['id']]: if port['device_id'] in vm_ids: - self.neutron.update_port(port['id'], { - 'port': { - 'security_groups': [], - 'port_security_enabled': False, - } - }) - LOG.info('Security disabled on port %s', port['id']) + try: + self.neutron.update_port(port['id'], { + 'port': { + 'security_groups': [], + 'port_security_enabled': False, + } + }) + LOG.info('Security disabled on port %s', port['id']) + except Exception: + LOG.warning('Failed to disable port security on port %s, ignoring...', + port['id']) + def get_loop_vm_hostnames(self): return [getattr(vm, 'OS-EXT-SRV-ATTR:hypervisor_hostname') for vm in self.vms] |