Beispiel #1
0
    def _verify_mode(self, mode):
        """
        Check if the device with given ip is responsive to ssh
        and in the specified mode.

        Args:
            mode (str): The name of the mode that the device should be in.

        Returns:
            True if device is in the desired mode, False otherwise
        """
        return common.verify_device_mode(self.dev_ip, mode)
Beispiel #2
0
    def _verify_mode(self, mode):
        """
        Check if the device with given ip is responsive to ssh
        and in the specified mode.

        Args:
            mode (str): The name of the mode that the device should be in.

        Returns:
            True if device is in the desired mode, False otherwise
        """
        return common.verify_device_mode(self.dev_ip, mode)
Beispiel #3
0
    def _verify_mode(self, mode):
        """
        Check that the device with given ip is responsive to ssh and is in the
        specified mode.

        The mode is checked by checking that the mode arg is present in the
        /proc/version file

        Args:
            mode (str): The mode we want to check for

        Returns:
            True if the device is in the desired mode, False otherwise
        """
        return common.verify_device_mode(self.dev_ip, mode)
Beispiel #4
0
    def _verify_mode(self, mode):
        """
        Check that the device with given ip is responsive to ssh and is in the
        specified mode.

        The mode is checked by checking that the mode arg is present in the
        /proc/version file

        Args:
            mode (str): The mode we want to check for

        Returns:
            True if the device is in the desired mode, False otherwise
        """

        return common.verify_device_mode(self.dev_ip, mode)