Skip to content

Commit eede47d

Browse files
bonding cleanup password issue
Peer Interfaes link up and mtu 1500 setup code is brought outside the for loop of the code used to make the host interfaces up Signed-off-by: Pavaman Subramaniyam <pavsubra@linux.vnet.ibm.com>
1 parent 9cdbeb9 commit eede47d

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

io/net/bonding.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -517,13 +517,14 @@ def test_cleanup(self):
517517
networkinterface.restore_from_backup()
518518
except Exception:
519519
self.log.info("backup file not availbale, could not restore file.")
520-
try:
521-
for interface in self.peer_interfaces:
522-
peer_networkinterface = NetworkInterface(interface, self.remotehost)
523-
peer_networkinterface.set_mtu("1500")
524-
self.remotehost.remote_session.quit()
525-
except Exception:
526-
self.log.debug("Could not revert peer interface MTU to 1500")
520+
521+
try:
522+
for interface in self.peer_interfaces:
523+
peer_networkinterface = NetworkInterface(interface, self.remotehost)
524+
peer_networkinterface.set_mtu("1500")
525+
self.remotehost.remote_session.quit()
526+
except Exception:
527+
self.log.debug("Could not revert peer interface MTU to 1500")
527528

528529
def error_check(self):
529530
if self.err:

0 commit comments

Comments
 (0)