def connect(self): iscsi.addIscsiNode(self._iface, self._target, self._cred) timeout = config.getint("irs", "udev_settle_timeout") udevadm.settle(timeout)
def setup_node(self): self._maybe_connect_iser() iscsi.addIscsiNode(self.iface, self.target, self.cred)
def _connect_iscsi(self): iscsi.addIscsiNode(self._iface, self._target, self._cred) iscsi.loginToIscsiNode(self._iface, self._target)