Skip to content

RDKCOM-5639: RDKBDEV-3518 Add a marker string to monitor Disassociated Hotspot clients due to DHCP failure - #69

Open
rhegde114 wants to merge 8 commits into
rdkcentral:developfrom
rhegde114:Hotspot_Marker
Open

rhegde114 wants to merge 8 commits into
rdkcentral:developfrom
rhegde114:Hotspot_Marker

Conversation

@rhegde114

@rhegde114 rhegde114 commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

RDKCOM-5639:Add a marker string to monitor Disassociated Hotspot clients due to DHCP failure

Reason for change: Add a marker string to monitor Disassociated Hotspot clients due to DHCP failure

Test Procedure:

  1. Change the endpoint ip address and make sure Wag doen't respond to DHCP discover.
    dmcli eRT setv Device.X_COMCAST-COM_GRE.Tunnel.1.PrimaryRemoteEndpoint string 75.75.75.75
    dmcli eRT setv Device.X_COMCAST-COM_GRE.Tunnel.1.SecondaryRemoteEndpoint string 75.75.76.76
  2. Marker string will be logged in /rdklogs/logs/Hotspotlog.txt.0 file
    if hotspot client doesn't get the ip from WAG

Risks : None

Priority : P2

Copilot AI lite review requested due to automatic review settings September 8, 2026 15:36
@rhegde114
rhegde114 requested review from a team as code owners September 8, 2026 15:36

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

There are small but concrete issues in the newly added lines (a typo and an identifier/correlation improvement) that should be addressed before approval.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Adds a deterministic log marker to help operational monitoring detect hotspot clients that are disassociated after a DHCP flow fails (no ACK within the timer window), as requested in RDKCOM-5639.

Changes:

  • Emit a new CcspTraceInfo marker when DHCP ACK is not observed and a reject/disassociate RBus event is published.
  • Include the affected client identifier in the marker log line.
File summaries
File Description
source/hotspotfd/dhcpsnooper.c Adds an INFO log marker during DHCP-failure-triggered client disassociation flow.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 2
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread source/hotspotfd/dhcpsnooper.c Outdated
Comment thread source/hotspotfd/dhcpsnooper.c Outdated
…nts due to DHCP failure

Reason for change: Add a marker string to monitor Disassociated Hotspot clients due to DHCP failure

Test Procedure:

    1.Change the endpoint ip address and make sure Wag doen't respond to DHCP discover.
      dmcli eRT setv Device.X_COMCAST-COM_GRE.Tunnel.1.PrimaryRemoteEndpoint string 75.75.75.75
      dmcli eRT setv Device.X_COMCAST-COM_GRE.Tunnel.1.SecondaryRemoteEndpoint string 75.75.76.76
    2. Verify Marker string is logged in /rdklogs/logs/Hotspotlog.txt.0 file
       if hotspot client doesn't get the ip from WAG
Risks : None

Priority : P2
Copilot AI review requested due to automatic review settings September 8, 2026 15:53

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The new marker is currently gated on RBUS publish success, which can prevent the marker from being logged in DHCP-failure scenarios described by the PR.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

Comment thread source/hotspotfd/dhcpsnooper.c
…nts due to DHCP failure

Reason for change: Add a marker string to monitor Disassociated Hotspot clients due to DHCP failure

Test Procedure:

    1.Change the endpoint ip address and make sure Wag doen't respond to DHCP discover.
      dmcli eRT setv Device.X_COMCAST-COM_GRE.Tunnel.1.PrimaryRemoteEndpoint string 75.75.75.75
      dmcli eRT setv Device.X_COMCAST-COM_GRE.Tunnel.1.SecondaryRemoteEndpoint string 75.75.76.76
    2. Verify Marker string is logged in /rdklogs/logs/Hotspotlog.txt.0 file
       if hotspot client doesn't get the ip from WAG
Risks : None

Priority : P2
Copilot AI review requested due to automatic review settings September 8, 2026 17:27

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The change is low-risk and localized to an additional log marker, with only minor formatting consistency feedback noted.

Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

Comment thread source/hotspotfd/dhcpsnooper.c
…nts due to DHCP failure

Reason for change: Add a marker string to monitor Disassociated Hotspot clients due to DHCP failure

Test Procedure:

    1.Change the endpoint ip address and make sure Wag doen't respond to DHCP discover.
      dmcli eRT setv Device.X_COMCAST-COM_GRE.Tunnel.1.PrimaryRemoteEndpoint string 75.75.75.75
      dmcli eRT setv Device.X_COMCAST-COM_GRE.Tunnel.1.SecondaryRemoteEndpoint string 75.75.76.76
    2. Verify Marker string is logged in /rdklogs/logs/Hotspotlog.txt.0 file
       if hotspot client doesn't get the ip from WAG
Risks : None

Priority : P2
Copilot AI review requested due to automatic review settings September 15, 2026 14:05

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Add regression coverage for the new telemetry path.

Get a fresh assessment by requesting another Copilot review.

Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

//Added marker to track the disassociated client upon DHCP failure
CcspTraceInfo(("DHCP_FAILED_AND_CLIENT_DISASSOCIATED: %s\n",mac_str));
snprintf(telemetry_buf, sizeof(telemetry_buf), "%s", mac_str);
t2_event_s("DHCP_FAILED_AND_CLIENT_DISASSOCIATED", telemetry_buf);
…nts due to DHCP failure

Reason for change: Add a marker string to monitor Disassociated Hotspot clients due to DHCP failure

Test Procedure:

    1.Change the endpoint ip address and make sure Wag doen't respond to DHCP discover.
      dmcli eRT setv Device.X_COMCAST-COM_GRE.Tunnel.1.PrimaryRemoteEndpoint string 75.75.75.75
      dmcli eRT setv Device.X_COMCAST-COM_GRE.Tunnel.1.SecondaryRemoteEndpoint string 75.75.76.76
    2. Verify Marker string is logged in /rdklogs/logs/Hotspotlog.txt.0 file
       if hotspot client doesn't get the ip from WAG
Risks : None

Priority : P2
Copilot AI review requested due to automatic review settings September 15, 2026 18:47

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The test bypasses the production timeout path and does not verify marker ordering or MAC propagation.

Get a fresh assessment by requesting another Copilot review.

Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 1
  • Review effort level: Lite

Comment thread source/test/HotspotFdTest/HotspotFdTest.cpp Outdated
…pot clients due to DHCP failure"

This reverts commit 00551f8.
Copilot AI review requested due to automatic review settings September 15, 2026 19:18

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The only remaining finding is a minor documentation nit.

Review details

Suppressed comments (1)

source/hotspotfd/dhcpsnooper.c:1245

  • This adds a new T2 marker, but the repository's telemetry inventories at README.md:585 and docs/README.md:585 enumerate the marker names and omit DHCP_FAILED_AND_CLIENT_DISASSOCIATED. Please add the new marker to both tables so operators and telemetry consumers can discover this event.
                    t2_event_s("DHCP_FAILED_AND_CLIENT_DISASSOCIATED", telemetry_buf);
  • Files reviewed: 1/1 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@pradeeptakdas pradeeptakdas changed the title RDKCOM-5639:Add a marker string to monitor Disassociated Hotspot clients due to DHCP failure RDKCOM-5639: RDKBDEV-3518 Add a marker string to monitor Disassociated Hotspot clients due to DHCP failure Sep 18, 2026
@AkhilaReddyK7 AkhilaReddyK7 added the community-contribution Contribution from community label Sep 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution Contribution from community

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants