Skip to content

Validate interface name length#11

Closed
arfeigin wants to merge 1 commit intomasterfrom
master_validate_iface_name_length
Closed

Validate interface name length#11
arfeigin wants to merge 1 commit intomasterfrom
master_validate_iface_name_length

Conversation

@arfeigin
Copy link
Owner

@arfeigin arfeigin commented Mar 18, 2024

What I did
Validate interface name length does not exceed the limitation of IFNAMSIZ to align to kernel restrictions.
This PR covers the cases of adding interface directly to the DB not using the cli - similar validation on the CLI side is implemented in a sonic-utilities PR.
Why I did it
Kernel restricts interface name length to not exceed IFNAMSIZ and this was not checked which can lead to inconsistency when creating such interface as it will be created in config db but it will be blocked when trying to actually create such interface.
How I verified it
Manual testing
Details if related

@arfeigin arfeigin changed the title Validate iface name length in cfgmgr Validate interface name length Mar 27, 2024
@arfeigin arfeigin force-pushed the master_validate_iface_name_length branch from dbb98ff to b197b1c Compare June 30, 2024 12:18
@arfeigin arfeigin force-pushed the master_validate_iface_name_length branch from 411403a to 0126ea1 Compare July 3, 2024 11:00
@arfeigin arfeigin force-pushed the master_validate_iface_name_length branch from 0126ea1 to f6e9494 Compare July 3, 2024 11:10
@arfeigin arfeigin closed this Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants