Skip to content

Enhancement: [sflow] Add acceptable range to incorrect number of samples error log #21191

@anders-nexthop

Description

@anders-nexthop

Is it platform specific

generic

Importance or Severity

Low

Description of the enhancement

In the sflow PTF script, the error message when an unexpected number of sample counts is received does not include the expected range:

"Expected Number of samples are not collected from Interface %s in collector %s , Received %s"

It would be helpful if the range was included in the error so that the operator can see at a glance what the issue was (not enough samples, too many samples, etc).

Current Behavior

Logs look like:

Expected Number of samples are not collected from Interface Ethernet192 in collector collector0 , Received 5

Proposed Behavior

Logs would look like:

Expected Number of samples are not collected from Interface Ethernet192 in collector collector0 , Received 5 which is outside the acceptable range of 60 to 140

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions