Skip to content

Conversation

@aprasad-97
Copy link

Reason for change: After enabling Wan Manager Unification flag in MXL build, we observed that default IPv6 route for erouter0 was not getting added in CM during bootup. So fixed condition check to specifically check erouter0 interface while adding route.

Risks: Low

Signed-off-by: Aiswarya Prasad [email protected]

@aprasad-97 aprasad-97 requested a review from a team as a code owner September 24, 2025 11:35

buffer[0] = '\0';
if ((fp_route = popen("ip -6 ro | grep default", "r"))) {
if ((fp_route = popen("ip -6 ro show default dev erouter0", "r"))) {
Copy link
Contributor

Choose a reason for hiding this comment

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

p_VirtIf->Name should be used instead of hard-coding erouter0.
Could you please clarify how this change addresses the IPv6 router issue?
does the MXL platform have a different default IPv6 router apart from the WAN interface in this scenario?"

Copy link
Author

@aprasad-97 aprasad-97 Sep 25, 2025

Choose a reason for hiding this comment

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

yes, correct.
This is observed in MXL platform because we have default IPv6 route present for wan0(for Docsis Management) apart from that of erouter0 in CM.
So, this condition check is not enough to add default erouter0 route and thus default route for erouter0 is missing in MXL setup.

To fix this, we have modified the condition check in code to add route for erouter0 irrespective of any other default route in CM.

Copy link
Contributor

Choose a reason for hiding this comment

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

Okay.
Could you please change the hardcoded erouter0 to "p_VirtIf->Name" ?

Copy link
Author

@aprasad-97 aprasad-97 Nov 17, 2025

Choose a reason for hiding this comment

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

Hi, addressed the review comment @S-Parthiban-Selvaraj
Sorry the delay in response. I was occupied with a bit high priority work in our platform so far.

Copy link
Contributor

Choose a reason for hiding this comment

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

@aprasad-97
Thanks for the update. The changes look good. We will bring this change in the next release.

@pradeeptakdas pradeeptakdas changed the title RDKBDEV-3293 : Fix Condition check for adding default IPv6 route in WANManager RDKCOM-5438: RDKBDEV-3293 Fix Condition check for adding default IPv6 route in WANManager Sep 24, 2025
@aprasad-97 aprasad-97 force-pushed the RDKBDEV-3293 branch 2 times, most recently from 191c6f7 to 4d47111 Compare November 17, 2025 07:30
…ANManager

Reason for change: After enabling Wan Manager Unification flag in MXL build, we observed that default IPv6 route for erouter0 was not getting added in CM during bootup. So fixed condition check to specifically check erouter0 interface while adding route.
Risks: Low
Signed-off-by: Aiswarya Prasad <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants