Remove unnecessary IPWrapper() creation
The LinuxBridgeManager class has already created a local version of IPWrapper() at self.ip, just use it. Trivialfix Change-Id: I9524144c4762ab3f26c42c5dee967df5436e1a62
This commit is contained in:
parent
d2bf790a44
commit
bb6a9933de
|
@ -764,7 +764,7 @@ class LinuxBridgeManager(amb.CommonAgentManagerBase):
|
|||
mac = ip_lib.get_device_mac(
|
||||
list(self.bridge_mappings.values())[0])
|
||||
else:
|
||||
devices = ip_lib.IPWrapper().get_devices(True)
|
||||
devices = self.ip.get_devices(True)
|
||||
for device in devices:
|
||||
mac = ip_lib.get_device_mac(device.name)
|
||||
if mac:
|
||||
|
|
Loading…
Reference in New Issue