Page MenuHomeVyOS Platform

Expose time and size conversion functions as Jinja2 filters
Closed, ResolvedPublic


In vyos.util we have seconds_to_human, bytes_to_human and human_to_bytes functions that make it simpler to transform time and size data for display.

Exposing them as Jinja2 filters can make them a lot simpler to use from templates, not only from scripts.


Difficulty level
Unknown (require assessment)
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible
Issue type
Improvement (missing useful functionality)