Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions source/Styles/xb3/jst/includes/utility.jst
Original file line number Diff line number Diff line change
Expand Up @@ -1335,6 +1335,20 @@ function is_docsis_supported()
}
}

/**
* 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 +1338 to +1350

/**
* Description:
* return the device supports Bridge Mode or not
Expand Down
10 changes: 7 additions & 3 deletions source/Styles/xb6/jst/network_setup.jst
Original file line number Diff line number Diff line change
Expand Up @@ -444,9 +444,13 @@ function sec2dhm($sec)
<?% if(is_docsis_supported()) { ?>
<span class="readonlyLabel">CM MAC:</span>
<span class="value"><?% echo( strtoupper($CM_value["MACAddress"]));?></span>
<?% } else { ?>
<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()) { ?>
<span class="readonlyLabel">Device MAC:</span>
<?% } else { ?>
<span class="readonlyLabel">ETHWAN MAC:</span>
Comment on lines +449 to +451
<?% } ?>
<span class="value"><?% echo(strtoupper(getStr("Device.DeviceInfo.X_COMCAST-COM_CM_MAC"))); ?></span>
Comment on lines +449 to +453
<?% } ?>
Comment on lines +447 to 454
</div>
<?% if(is_wps_supported()) { ?>
Expand Down