[Bug 1726822] [NEW] unable to specify MII monitoring interval in fractions of a second
Christofer Bernander
nospam at bernander.net
Tue Oct 24 11:33:51 UTC 2017
Public bug reported:
OS: Ubuntu 17.10
Package version: 0.30
In systemd-networkd, the unit used for the netdev 'MIIMonitorSec' option
is 'second'. In order to set a MII monitoring interval including
fractions of a second, this option accepts floating values, for example
'MIIMonitorSec=0.1'.
In netplan, specifying 'mii-monitor-interval: 1' will translate into
'MIIMonitorSec=1'. However, specifying 'mii-monitor-interval: 0.1' will
not pass yaml validation:
Error in network definition //etc/netplan/01-netcfg.yaml line 14 column
30: invalid unsigned int value 0.1
Since netplan will only accept unsigned integer values for mii-monitor-
interval, there is no way to setting this interval to any value except
for whole seconds. In most scenarios, a sub-second interval is desirable
for this option.
** Affects: nplan (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to nplan in Ubuntu.
https://bugs.launchpad.net/bugs/1726822
Title:
unable to specify MII monitoring interval in fractions of a second
Status in nplan package in Ubuntu:
New
Bug description:
OS: Ubuntu 17.10
Package version: 0.30
In systemd-networkd, the unit used for the netdev 'MIIMonitorSec'
option is 'second'. In order to set a MII monitoring interval
including fractions of a second, this option accepts floating values,
for example 'MIIMonitorSec=0.1'.
In netplan, specifying 'mii-monitor-interval: 1' will translate into
'MIIMonitorSec=1'. However, specifying 'mii-monitor-interval: 0.1'
will not pass yaml validation:
Error in network definition //etc/netplan/01-netcfg.yaml line 14
column 30: invalid unsigned int value 0.1
Since netplan will only accept unsigned integer values for mii-
monitor-interval, there is no way to setting this interval to any
value except for whole seconds. In most scenarios, a sub-second
interval is desirable for this option.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nplan/+bug/1726822/+subscriptions
More information about the foundations-bugs
mailing list