Skip to content

Validate interface name length in CLI#3397

Closed
arfeigin wants to merge 8 commits intosonic-net:masterfrom
arfeigin:master_validate_interface_name_length-new
Closed

Validate interface name length in CLI#3397
arfeigin wants to merge 8 commits intosonic-net:masterfrom
arfeigin:master_validate_interface_name_length-new

Conversation

@arfeigin
Copy link
Copy Markdown
Contributor

@arfeigin arfeigin commented Jul 3, 2024

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)

@arfeigin arfeigin force-pushed the master_validate_interface_name_length-new branch from 1d8ac45 to 942edde Compare July 3, 2024 12:39
@arfeigin arfeigin requested a review from prsunny July 8, 2024 16:29
@arfeigin
Copy link
Copy Markdown
Contributor Author

arfeigin commented Jul 8, 2024

Checkers fail as sonic-net/sonic-swss-common#889 should be merged first so it will compile.

@arfeigin
Copy link
Copy Markdown
Contributor Author

arfeigin commented Jul 8, 2024

@prsunny Can you please help reviewing this and the attached PRs?

@dprital
Copy link
Copy Markdown
Collaborator

dprital commented Aug 14, 2024

@prsunny , Can you please approve this PR ?

@qiluo-msft
Copy link
Copy Markdown
Contributor

/azp run Azure.sonic-utilities

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@stepanblyschak
Copy link
Copy Markdown
Contributor

@qiluo-msft @prsunny Please review #3580

qiluo-msft pushed a commit to sonic-net/sonic-buildimage that referenced this pull request Nov 22, 2024
This PR is accompanied by sonic-net/sonic-swss-common#889 and sonic-net/sonic-utilities#3397

Why I did it
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 yang-model definitions for the following interface types:

vxlan
vlan
vrf
loopback
subinterface
portchannel

How to verify it
UT added
VladimirKuk pushed a commit to Marvell-switching/sonic-buildimage that referenced this pull request Jan 21, 2025
This PR is accompanied by sonic-net/sonic-swss-common#889 and sonic-net/sonic-utilities#3397

Why I did it
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 yang-model definitions for the following interface types:

vxlan
vlan
vrf
loopback
subinterface
portchannel

How to verify it
UT added
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.

6 participants