Skip to content

Fix the interface name length validation for subinterface#3774

Merged
liat-grozovik merged 2 commits intosonic-net:masterfrom
dgsudharsan:sub_intf_fix
Mar 2, 2025
Merged

Fix the interface name length validation for subinterface#3774
liat-grozovik merged 2 commits intosonic-net:masterfrom
dgsudharsan:sub_intf_fix

Conversation

@dgsudharsan
Copy link
Copy Markdown
Collaborator

What I did

Subinterface name length validation validates only the interface alias and not the entire subinterface name. This will result in wrong validation.

How I did it

Fixed the validation to use subinterface name and not just interface alias.

How to verify it

Added test case to verify.

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)

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@dgsudharsan dgsudharsan reopened this Feb 25, 2025
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@qiluo-msft qiluo-msft requested a review from prsunny March 1, 2025 02:01
@liat-grozovik liat-grozovik merged commit 8fdea8d into sonic-net:master Mar 2, 2025
7 checks passed
@liat-grozovik liat-grozovik changed the title [subintf]Fix the interface name length validation for subinterface Fix the interface name length validation for subinterface Mar 2, 2025
@mssonicbld
Copy link
Copy Markdown
Collaborator

Cherry-pick PR to 202411: #3799

nmoray pushed a commit to nmoray/sonic-utilities that referenced this pull request Jun 25, 2025
…3774)

- What I did
Subinterface name length validation validates only the interface alias and not the entire subinterface name. This will result in wrong validation.

- How I did it
Fixed the validation to use subinterface name and not just interface alias.

- How to verify it
Added test case to verify.
shihhsien-wang pushed a commit to shihhsien-wang/sonic-utilities that referenced this pull request Jan 21, 2026
shihhsien-wang added a commit to shihhsien-wang/sonic-utilities that referenced this pull request Jan 22, 2026
shihhsien-wang added a commit to shihhsien-wang/sonic-utilities that referenced this pull request Jan 22, 2026
shihhsien-wang added a commit to shihhsien-wang/sonic-utilities that referenced this pull request Jan 28, 2026
shihhsien-wang added a commit to shihhsien-wang/sonic-utilities that referenced this pull request Feb 2, 2026
shihhsien-wang added a commit to shihhsien-wang/sonic-utilities that referenced this pull request Feb 3, 2026
shihhsien-wang added a commit to shihhsien-wang/sonic-utilities that referenced this pull request Feb 3, 2026
shihhsien-wang added a commit to shihhsien-wang/sonic-utilities that referenced this pull request Feb 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants