Skip to content

Validate interface name length in CLI#92

Closed
stepanblyschak wants to merge 9 commits intomasterfrom
master_validate_interface_name_length-new
Closed

Validate interface name length in CLI#92
stepanblyschak wants to merge 9 commits intomasterfrom
master_validate_interface_name_length-new

Conversation

@stepanblyschak
Copy link
Copy Markdown
Owner

This PR is accompanied by sonic-net/sonic-swss-common#889 and sonic-net/sonic-buildimage#20108

What I did

Validate interface name length does not exceed the limitation of IFNAMSIZ to align to kernel restrictions.

How I did it

Add validation checks in the relevant config functions for the following interface types:

vxlan
vlan
vrf
loopback
subinterface
portchannel

How to verify it

UT tests added

Previous command output (if the output of a command-line utility has changed)
New command output (if the output of a command-line utility has changed)

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