Skip to content

XF10-889 : change ETHWAN MAC to DEVICE MAC in network_setup GUI page#142

Open
michaelamal wants to merge 3 commits into
rdkcentral:developfrom
michaelamal:patch-1
Open

XF10-889 : change ETHWAN MAC to DEVICE MAC in network_setup GUI page#142
michaelamal wants to merge 3 commits into
rdkcentral:developfrom
michaelamal:patch-1

Conversation

@michaelamal

Copy link
Copy Markdown

Reason for change: change ETHWAN MAC to DEVICE MAC
Test Procedure: build procedure
Risks: Medium
Priority: P0

Signed-off-by: Michael_AmalAnand@comcast.com

Reason for change: change ETHWAN MAC to DEVICE MAC  
Test Procedure: build procedure
Risks: Medium
Priority: P0

Signed-off-by: Michael_AmalAnand@comcast.com
Copilot AI review requested due to automatic review settings July 9, 2026 19:01
@michaelamal michaelamal requested review from a team as code owners July 9, 2026 19:01

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates the Network Setup UI to relabel the non-DOCSIS MAC address field as “Device MAC” for PON/EPON devices (while keeping “ETHWAN MAC” for other non-DOCSIS cases).

Changes:

  • Adds conditional labeling (“Device MAC” vs “ETHWAN MAC”) in the MAC address section when DOCSIS is not supported.
  • Reuses the existing CM MAC DML key for the displayed value in the non-DOCSIS path.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +448 to +452
<?% if (is_PON_Supported()) { ?>
<span class="readonlyLabel">Device MAC:</span>
<?% } else { ?>
<span class="readonlyLabel">ETHWAN MAC:</span>
<?% } ?>
Comment on lines +449 to +451
<span class="readonlyLabel">Device MAC:</span>
<?% } else { ?>
<span class="readonlyLabel">ETHWAN MAC:</span>
Reason for change: change ETHWAN MAC to DEVICE MAC  
Test Procedure: build procedure
Risks: Medium
Priority: P0

Signed-off-by: Michael_AmalAnand@comcast.com
Copilot AI review requested due to automatic review settings July 9, 2026 19:10

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

<span class="readonlyLabel">ETHWAN MAC:</span>
<span class="value"><?% echo( strtoupper(getStr("Device.DeviceInfo.X_COMCAST-COM_CM_MAC")));?></span>
<?% } else { ?>
<?% if (is_PON_Supported()) { ?>
Reason for change: change ETHWAN MAC to DEVICE MAC  
Test Procedure: build procedure
Risks: Medium
Priority: P0

Signed-off-by: Michael_AmalAnand@comcast.com
Copilot AI review requested due to automatic review settings July 9, 2026 19:20

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

Comment on lines +1338 to +1350
/**
* Description:
* return the device supports EPON or not
*/
function is_PON_Supported()
{
$epon_status = getenv("PON_SUPPORTED");
if($epon_status === "false") {
return false;
} else {
return true;
}
}
Comment on lines +447 to 454
<?% } else { ?>
<?% if (is_PON_Supported()) { ?>
<span class="readonlyLabel">Device MAC:</span>
<?% } else { ?>
<span class="readonlyLabel">ETHWAN MAC:</span>
<?% } ?>
<span class="value"><?% echo(strtoupper(getStr("Device.DeviceInfo.X_COMCAST-COM_CM_MAC"))); ?></span>
<?% } ?>
Comment on lines +449 to +453
<span class="readonlyLabel">Device MAC:</span>
<?% } else { ?>
<span class="readonlyLabel">ETHWAN MAC:</span>
<?% } ?>
<span class="value"><?% echo(strtoupper(getStr("Device.DeviceInfo.X_COMCAST-COM_CM_MAC"))); ?></span>
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