def METHOD_NAME(self, port_num):
    # Check for invalid QSFP port_num
    if port_num not in self.qsfp_ports:
        return False
    try:
        port_name = self.get_port_name(port_num)
        reg_file = open(
            "/".join([self.PORT_INFO_PATH, port_name, "qsfp_reset"]), "w")
    except IOError as e:
        print("Error: unable to open file: %s" % str(e))
        return False
    # Convert our register value back to a hex string and write back
    reg_file.seek(0)
    reg_file.write(hex(0))
    reg_file.close()
    # Sleep 1 second to allow it to settle
    time.sleep(1)
    # Flip the bit back high and write back to the register to take port out of reset
    try:
        reg_file = open(
            "/".join([self.PORT_INFO_PATH, port_name, "qsfp_reset"]), "w")
    except IOError as e:
        print("Error: unable to open file: %s" % str(e))
        return False
    reg_file.seek(0)
    reg_file.write(hex(1))
    reg_file.close()
    return True