Merge ~raharper/netplan:fix/interval-sec into ~netplan-developers/netplan/+git/netplan:master
Proposed by
Ryan Harper
Status: | Merged |
---|---|
Merge reported by: | Mathieu Trudel-Lapierre |
Merged at revision: | 243e4bbecb7e9c7538d95348443064a8320e30be |
Proposed branch: | ~raharper/netplan:fix/interval-sec |
Merge into: | ~netplan-developers/netplan/+git/netplan:master |
Diff against target: |
233 lines (+46/-49) 3 files modified
doc/netplan.md (+28/-31) src/networkd.c (+9/-9) tests/generate.py (+9/-9) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Mathieu Trudel-Lapierre (community) | Needs Information | ||
Review via email: mp+336717@code.launchpad.net |
Description of the change
Update docs and netplan to use milliseconds for time-based intervals
While networkd does accept time values for bonds and bridges at the 1 second
granularity, it also allows users to apply a suffix, such as 'ms' to indicate
the unit. netplan already documents that these time values are milliseconds for
the NetworkManager renderer, so this patch updates documentation to indicate
that all of the time values are now in millisecond form. The networkd renderer
is updated to append 'ms' to the interger value that's parsed.
LP: #1745597
To post a comment you must log in.
I'm worried about breaking stuff for those who already use these parameters, so that would be one argument /for/ parsing using strings with time units.
On the other hand, the current behavior is quite limited in the systemd backend using only seconds.