-
Notifications
You must be signed in to change notification settings - Fork 543
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[vlanmgrd] Implement configuration of mtu for host vlan #1709
base: master
Are you sure you want to change the base?
Conversation
* Implementing of configuration of mtu for host vlans. Signed-off-by: Maksym Belei <Maksym_Belei@jabil.com>
@maksymbelei95 , can we have some VS test to cover this? Seems its significant amount of changes to handle the mtu config. |
@prsunny, sure, I can add new unit tests, related to mtu changes for vlan. Before that I just want to ask you to confirm that the idea of my changes is right to not to waste my time for unit tests developing in case if my understanding of the problem is wrong. If changes in the PR looks good to you, I will procced with developing of the related unit tests. By the way, I have one unclear point regarding the expected behavior on mtu change of Host Vlan. Should vlanmgr update the related table in APPL_DB on change of MTU of the Host Vlan, like it makes here https://github.com/Azure/sonic-swss/blob/master/cfgmgr/vlanmgr.cpp#L387? Could you help me with this? |
Sure @maksymbelei95. Let me first do the review on the approach, before developing unit-tests |
@maksymbelei95 I believe the entire logic was under the assumption that a port can be part of only one VLAN. In general a port can be part of multiple VLANs and a VLAN can have multiple members. So this logic wouldn't work when a port or portchannel is part of multiple VLANs |
@maksymbelei95 , it looks like an over-complicated approach and as @dgsudharsan mentioned, this is not covering all scenarios. My suggestion is to keep it simple and just update the mtu for the Vlan interface based on user config irrespective of the individual ports mtu. Do you see an issue/gap with that? |
@prsunny, @dgsudharsan, sorry for the late response.
|
…onic-net#1709) - Renamed validate_ip_mask() to is_valid_ip_interface() as per code style - Updated is_valid_ip_interface() to do not modify the IP address - Updated UTs per changes Signed-off-by: Andriy Kokhan <andriyx.kokhan@intel.com>
Signed-off-by: Maksym Belei Maksym_Belei@jabil.com
What I did
Implemented possibility to set mtu for Host Vlans.
What exactly the fix does:
Update sequence is briefly described below:
updateHostVlanMtu
reads mtu field from configuration of the vlan.updateHostVlanMtu
reads mtus of the members from config db and searches the lowest value in them.The mtu updating process above will be performed in the next cases:
doVlanTask
);doVlanMemberTask
);doVlanMemberUpdateTask
).Additional prerequirements:
Why I did it
To be able to set mtu to Host Vlan.
How I verified it
Details if related