ui_ons_cli.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:taf 作者: taf3 项目源码 文件源码
def check_device_state(self):
        """Attempts to connect to the shell retries number of times.

        Raises:
            Exception:  device is not ready

        """

        if not (self.switch.cli.conn.check_client() and self.switch.cli.conn.check_shell()):
            try:
                self.switch.ui.connect()
            except (CLISSHException, SSHException, SocketError):
                self.switch.ui.disconnect()
                raise Exception("Device is not ready.")

        # Add cli application check

# Platform
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号