Skip to content

[sflow] | sflow doesn't switch to IPv6 agent-id if IPv4 address was removed from interface #6951

@Hedgehog-Guru

Description

@Hedgehog-Guru

Description
sflow doesn't switch to IPv6 agent-id if IPv4 address was removed from the interface

Steps to reproduce the issue

  1. Enable sflow, configure some collector to export
  2. Create any new loopback interface by assigning both IPv4 and IPv6 addresses
  3. Use that interface as sflow agent-id
    config sflow agent-id add Loopback1
  1. Remove IPv4 address from that loopback
  2. Check exported sflow packets for agent-id

Describe the results you received
IPv4 which was removed is still used as agent-id

Describe the results you expected
IPv6 is used as agent-id

Output of show version

SONiC Software Version: SONiC.SONIC.202012.10-d26a4af_Internal
Distribution: Debian 10.7
Kernel: 4.19.0-9-2-amd64
Build commit: d26a4aff
Build date: Thu Feb  4 15:28:36 UTC 2021
Built by: sw-r2d2-bot@r-build-sonic-ci02

Platform: x86_64-mlnx_msn3700-r0
HwSKU: ACS-MSN3700
ASIC: mellanox
ASIC Count: 1
Serial Number: MT1852X03965
Uptime: 17:58:46 up 1 day,  3:06,  2 users,  load average: 1.03, 0.93, 0.82

Docker images:
REPOSITORY                    TAG                                IMAGE ID            SIZE
docker-syncd-mlnx             SONIC.202012.10-d26a4af_Internal   b0775c41d0d0        542MB
docker-syncd-mlnx             latest                             b0775c41d0d0        542MB
docker-snmp                   SONIC.202012.10-d26a4af_Internal   bf1942e39970        438MB
docker-snmp                   latest                             bf1942e39970        438MB
docker-teamd                  SONIC.202012.10-d26a4af_Internal   4b51426a4f11        408MB
docker-teamd                  latest                             4b51426a4f11        408MB
docker-sonic-mgmt-framework   SONIC.202012.10-d26a4af_Internal   c4ed2967823f        616MB
docker-sonic-mgmt-framework   latest                             c4ed2967823f        616MB
docker-nat                    SONIC.202012.10-d26a4af_Internal   6f83852abace        411MB
docker-nat                    latest                             6f83852abace        411MB
docker-router-advertiser      SONIC.202012.10-d26a4af_Internal   d1c9b2a3ba6d        398MB
docker-router-advertiser      latest                             d1c9b2a3ba6d        398MB
docker-platform-monitor       SONIC.202012.10-d26a4af_Internal   2f9ba3b87a75        689MB
docker-platform-monitor       latest                             2f9ba3b87a75        689MB
docker-lldp                   SONIC.202012.10-d26a4af_Internal   57b6b48acc19        437MB
docker-lldp                   latest                             57b6b48acc19        437MB
docker-database               SONIC.202012.10-d26a4af_Internal   0c698fd3d04f        397MB
docker-database               latest                             0c698fd3d04f        397MB
docker-orchagent              SONIC.202012.10-d26a4af_Internal   86241aa41334        425MB
docker-orchagent              latest                             86241aa41334        425MB
docker-dhcp-relay             SONIC.202012.10-d26a4af_Internal   5fa3d131c72f        404MB
docker-dhcp-relay             latest                             5fa3d131c72f        404MB
docker-sonic-telemetry        SONIC.202012.10-d26a4af_Internal   36d5740d7971        471MB
docker-sonic-telemetry        latest                             36d5740d7971        471MB
docker-fpm-frr                SONIC.202012.10-d26a4af_Internal   a34711f7665f        425MB
docker-fpm-frr                latest                             a34711f7665f        425MB
docker-sflow                  SONIC.202012.10-d26a4af_Internal   166cfe57ddd3        408MB
docker-sflow                  latest                             166cfe57ddd3        408MB

sonic_dump_qa-anconda-test10_20210211_175834.tar.gz

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