Skip to content

Incorrect CLI validation for unsupported speed #9327

Closed
@ihorchekh

Description

@ihorchekh

Description

Setting unsupported speed on interface results in an error, however, when setting speed using the same digits like any supported speed the error doesn't appear, e.g. speed 50000 is supported and if we try to set speed 500 which is not supported and we'll get no errors, but 499 or 501 causes an error. This is not a functional issue and it doesn't set up unsupported speed, but the error should be shown.

Steps to reproduce the issue:

  1. Run cmd "sudo config interface speed Ethernet0 499"
  2. Run cmd "sudo config interface speed Ethernet0 500"

Describe the results you received:

  1. Invalid speed specified: 499
    Valid speeds:200000,100000,50000,40000,25000,10000,1000
  2. No error

Describe the results you expected:

Error in step 2 - the same as in step 1

Output of show version:

SONiC.202106_rc_4_20211103.2-0a17680cd_Internal

Output of show techsupport:

sonic_dump_r-anaconda-51_20211111_122328.tar.gz

Metadata

Metadata

Assignees

No one assigned

    Labels

    Triagedthis issue has been triaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions