def connect(self, srv):
self.add_uuid(srv.net_type, srv.nid_uuid, srv.nid)
- if srv.net_type in ('tcp','openib','iib','vib','ra') and not config.lctl_dump:
+
+ if config.lctl_dump:
+ return
+
+ if srv.net_type in ('tcp',):
host = socket.gethostname()
node_list = []
if config.node:
break
self.add_peer(srv.net_type, srv.nid, hostaddr, srv.port)
+
+ if srv.net_type in ('openib','iib','vib','ra'):
+ self.add_peer(srv.net_type, srv.nid, srv.hostaddr[0], srv.port)
# Recover a device
def recover(self, dev_name, new_conn):