Skip to content

Commit

Permalink
Merge pull request #2280 from PavamanSubramaniyam/bonding_cleanup_pas…
Browse files Browse the repository at this point in the history
…sword

bonding cleanup password issue
  • Loading branch information
PraveenPenguin authored Apr 28, 2022
2 parents b88a184 + eede47d commit b2a17a8
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions io/net/bonding.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,13 +519,14 @@ def test_cleanup(self):
networkinterface.restore_from_backup()
except Exception:
self.log.info("backup file not availbale, could not restore file.")
try:
for interface in self.peer_interfaces:
peer_networkinterface = NetworkInterface(interface, self.remotehost)
peer_networkinterface.set_mtu("1500")
self.remotehost.remote_session.quit()
except Exception:
self.log.debug("Could not revert peer interface MTU to 1500")

try:
for interface in self.peer_interfaces:
peer_networkinterface = NetworkInterface(interface, self.remotehost)
peer_networkinterface.set_mtu("1500")
self.remotehost.remote_session.quit()
except Exception:
self.log.debug("Could not revert peer interface MTU to 1500")

def error_check(self):
if self.err:
Expand Down

0 comments on commit b2a17a8

Please sign in to comment.