def set_dut_ip_address(self, ip_num, ip_addr): """ Sets the DUT IP address. :type ip_num: integer :param ip_num: number of the IP address to set (1 to 4). :type ip_addr: str :param ip_addr: the IP address to set. """ (err, msg) = W.SetDutIpAddress(self.get_root(), ip_num, ip_addr) self.__error_check(err, msg)
def clear_all_dut_ip_addresses(self): """ Clears all configured DUT IP addresses and sets them to " " during the clear process, the network simulator may complain because of no IP addresses assigned """ # Agilent8960 has four DUT IP addresses for ip_num in range(1, 5): (err, msg) = W.SetDutIpAddress(self.get_root(), ip_num, "") self.__error_check(err, msg) self.get_logger().info( "the network simulator ip_addresses are temporary cleared, please ignore the previous warning displayed" )