diff --git a/quantum/plugins/linuxbridge/agent/linuxbridge_quantum_agent.py b/quantum/plugins/linuxbridge/agent/linuxbridge_quantum_agent.py index 064c23dae48..4eb2620286b 100755 --- a/quantum/plugins/linuxbridge/agent/linuxbridge_quantum_agent.py +++ b/quantum/plugins/linuxbridge/agent/linuxbridge_quantum_agent.py @@ -66,12 +66,12 @@ class LinuxBridge: def device_exists(self, device): """Check if ethernet device exists.""" - retval = utils.execute(['ip', 'link', 'show', - 'dev', device], root_helper=self.root_helper) - if retval: - return True - else: + try: + utils.execute(['ip', 'link', 'show', 'dev', device], + root_helper=self.root_helper) + except RuntimeError: return False + return True def get_bridge_name(self, network_id): if not network_id: