Skip to content

[Sflow-Sonic VS]: "config sflow interface disable all" doesn't disable sflow for non default interface #3990

@chitra-raghavan

Description

@chitra-raghavan

Description

"config sflow interface disable all" doesn't disable sflow for non default interface

Ethernet4,Ethernet8,Ethernet112,Ethernet116,Ethernet120,Ethernet124 are configured with non default values like non-default sampling rate or sflow disabled . These interfaces are not removed with "config sflow interface disable all" command


root@vlab-01:~#
root@vlab-01:~# show sflow interface 
sFlow interface configurations
+-------------+---------------+-----------------+
| Interface   | Admin State   |   Sampling Rate |
+=============+===============+=================+
| Ethernet0   | up            |            4000 |
+-------------+---------------+-----------------+
| Ethernet4   | down          |            4000 |
+-------------+---------------+-----------------+
| Ethernet8   | down          |            4000 |
+-------------+---------------+-----------------+
| Ethernet12  | up            |            4000 |
+-------------+---------------+-----------------+
| Ethernet16  | up            |            4000 |
+-------------+---------------+-----------------+
| Ethernet20  | up            |            4000 |
+-------------+---------------+-----------------+
| Ethernet24  | up            |            4000 |
+-------------+---------------+-----------------+
| Ethernet28  | up            |            4000 |
+-------------+---------------+-----------------+
| Ethernet32  | up            |            4000 |
+-------------+---------------+-----------------+
+-------------+---------------+-----------------+
| Ethernet36  | up            |            4000 |
+-------------+---------------+-----------------+
| Ethernet40  | up            |            4000 |
+-------------+---------------+-----------------+
| Ethernet44  | up            |            4000 |
+-------------+---------------+-----------------+
| Ethernet48  | up            |            4000 |
+-------------+---------------+-----------------+
| Ethernet52  | up            |            4000 |
+-------------+---------------+-----------------+
| Ethernet56  | up            |            4000 |
+-------------+---------------+-----------------+
| Ethernet60  | up            |            4000 |
+-------------+---------------+-----------------+
| Ethernet64  | up            |            4000 |
+-------------+---------------+-----------------+
| Ethernet68  | up            |            4000 |
+-------------+---------------+-----------------+
| Ethernet72  | up            |            4000 |
+-------------+---------------+-----------------+
| Ethernet76  | up            |            4000 |
+-------------+---------------+-----------------+
| Ethernet80  | up            |            4000 |
+-------------+---------------+-----------------+
| Ethernet84  | up            |            4000 |
+-------------+---------------+-----------------+
| Ethernet88  | up            |            4000 |
+-------------+---------------+-----------------+
| Ethernet92  | up            |            4000 |
+-------------+---------------+-----------------+
| Ethernet96  | up            |            4000 |
+-------------+---------------+-----------------+
| Ethernet100 | up            |            4000 |
+-------------+---------------+-----------------+
| Ethernet104 | up            |            4000 |
+-------------+---------------+-----------------+
| Ethernet108 | up            |            4000 |
+-------------+---------------+-----------------+
| Ethernet112 | up            |             512 |
+-------------+---------------+-----------------+
| Ethernet116 | up            |             512 |
+-------------+---------------+-----------------+
| Ethernet120 | up            |             512 |
+-------------+---------------+-----------------+
| Ethernet124 | up            |             512 |
+-------------+---------------+-----------------+


root@vlab-01:~#
root@vlab-01:~# config sflow interface disable all
root@vlab-01:~# show sflow interface 
sFlow interface configurations
+-------------+---------------+-----------------+
| Interface   | Admin State   |   Sampling Rate |
+=============+===============+=================+
| Ethernet4   | down          |            4000 |
+-------------+---------------+-----------------+
| Ethernet8   | down          |            4000 |
+-------------+---------------+-----------------+
| Ethernet112 | up            |             512 |
+-------------+---------------+-----------------+
| Ethernet116 | up            |             512 |
+-------------+---------------+-----------------+
| Ethernet120 | up            |             512 |
+-------------+---------------+-----------------+
| Ethernet124 | up            |             512 |
+-------------+---------------+-----------------+

Steps to reproduce the issue:

  1. Enable sflow on all interfaces
  2. Change sample-rate or sflow status in few interfaces
  3. Check whether all sflow interfaces are diabled after giving command " cofnig sflow interface disable all"

Describe the results you received:
Not all sflow interfaces are disabled

Describe the results you expected:
Expecting all ports to be disbaled

Additional information you deem important (e.g. issue happens only occasionally):

TESTED in SONIC-VS

**Output of `show version`:**
    root@vlab-01:~# show vers

SONiC Software Version: SONiC.HEAD.188-4458efbd
Distribution: Debian 9.11
Kernel: 4.9.0-9-2-amd64
Build commit: 4458efbd
Build date: Wed Dec 18 08:42:30 UTC 2019
Built by: johnar@jenkins-worker-11

Platform: x86_64-kvm_x86_64-r0
HwSKU: Force10-S6000
ASIC: vs
Serial Number: 000000
Uptime: 10:03:26 up 58 min,  1 user,  load average: 0.41, 0.27, 0.30

Docker images:
REPOSITORY                 TAG                 IMAGE ID            SIZE
docker-syncd-vs            HEAD.188-4458efbd   495cc11160dd        291MB
docker-syncd-vs            latest              495cc11160dd        291MB
docker-platform-monitor    HEAD.188-4458efbd   07626700bce9        333MB
docker-platform-monitor    latest              07626700bce9        333MB
docker-fpm-frr             HEAD.188-4458efbd   5b99dc1e2a92        325MB
docker-fpm-frr             latest              5b99dc1e2a92        325MB
docker-lldp-sv2            HEAD.188-4458efbd   f40b3e9c0a24        303MB
docker-lldp-sv2            latest              f40b3e9c0a24        303MB
docker-dhcp-relay          HEAD.188-4458efbd   f56f85f26935        290MB
docker-dhcp-relay          latest              f56f85f26935        290MB
docker-database            HEAD.188-4458efbd   452bb9eae044        282MB
docker-database            latest              452bb9eae044        282MB
docker-sflow               HEAD.188-4458efbd   a7b040a3c4f1        305MB
docker-sflow               latest              a7b040a3c4f1        305MB
docker-teamd               HEAD.188-4458efbd   05a8b6083599        305MB
docker-teamd               latest              05a8b6083599        305MB
docker-snmp-sv2            HEAD.188-4458efbd   35d2e24c3598        339MB
docker-snmp-sv2            latest              35d2e24c3598        339MB
docker-orchagent           HEAD.188-4458efbd   71397b40a481        323MB
docker-orchagent           latest              71397b40a481        323MB
docker-sonic-telemetry     HEAD.188-4458efbd   8cca2b75a13d        305MB
docker-sonic-telemetry     latest              8cca2b75a13d        305MB
docker-router-advertiser   HEAD.188-4458efbd   820d05e70b3c        282MB
docker-router-advertiser   latest              820d05e70b3c        282MB

root@vlab-01:~#
**Attach debug file `sudo generate_dump`:**

```
(paste your output here)
```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions