Explicitly clear the port mode cache when we disconnect from a switch

Otherwise it stays around and causes problems on future switch
connections.

Change-Id: I540443d6fe63f84924a25264dc4a1f17147cec09
diff --git a/drivers/common.py b/drivers/common.py
index 95e04d4..4c4b189 100644
--- a/drivers/common.py
+++ b/drivers/common.py
@@ -87,6 +87,7 @@
         logging.debug("Closing connection to %s", self.hostname)
         self.connection.close(True)
         self._ports = []
+        self._port_modes.clear()
         self._prompt_name = ''
         self._systemdata = []
         del(self)