diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-07-10 23:01:09 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2022-07-10 23:11:00 +0200 |
commit | 4315c8fa5bb090e2b7edd6bda205041623e2511d (patch) | |
tree | 172d8740f71220bec4a971790dc6c34e0601abc7 /python/vyos | |
parent | 8d1bb953b784d03e02ba26e78da5488a79aaf20d (diff) | |
download | vyos-1x-4315c8fa5bb090e2b7edd6bda205041623e2511d.tar.gz vyos-1x-4315c8fa5bb090e2b7edd6bda205041623e2511d.zip |
bond: T4522: add ability to specify mii monitor interval via CLI
Linux Kernel supports to specify the MII link monitoring frequency in
milliseconds. This determines how often the link state of each slave is
inspected for link failures. A value of zero disables MII link monitoring.
A value of 100 is a good starting point.
The default value is 100.
set interfaces bonding bond0 mii-mon-interval <n>
Diffstat (limited to 'python/vyos')
-rw-r--r-- | python/vyos/ifconfig/bond.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/python/vyos/ifconfig/bond.py b/python/vyos/ifconfig/bond.py index 33745ceb3..98bf6162b 100644 --- a/python/vyos/ifconfig/bond.py +++ b/python/vyos/ifconfig/bond.py @@ -388,7 +388,8 @@ class BondIf(Interface): self.set_admin_state('down') # Specifies the MII link monitoring frequency in milliseconds - self.set_miimon_interval('250') + value = config.get('mii_mon_interval') + self.set_miimon_interval(value) # Bonding transmit hash policy value = config.get('hash_policy') |