network-controller-harvester
network-controller-harvester copied to clipboard
Sync MTU and check MTU valid values
Problem:
Change of MTU on VlanConfig uplink is not updated to NAD.
Solution:
- Check the input MTU on VlanConfig
- Update the MTU to labels of ClusterNetwork when change happens
- Sync NAD's MTU with the lables of ClusterNetwork when change happens
This solution does not change the APIs and UI, instead it propagates MTU from VlanConfig to ClusterNetwork when change happens; and makes sure all the VlanConfigs under the same ClusterNetwork will have the same MTU.
Related Issue: https://github.com/harvester/harvester/issues/4355 https://github.com/harvester/harvester/issues/4752
HEP: https://github.com/harvester/harvester/pull/6385 Doc PR: https://github.com/harvester/docs/pull/640
Test plan: