Skip to content
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 whether the device supports PON (e.g., EPON) or not
*/
function is_pon_supported()
{
$pon_status = getenv("PON_SUPPORTED");
if($pon_status === "false") {
return false;
} else {
return true;
}
}

/**
* 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 { ?>
Comment thread
michaelamal marked this conversation as resolved.
<?% if (is_pon_supported()) { ?>
<span class="readonlyLabel">Device MAC:</span>
<?% } else { ?>
<span class="readonlyLabel">ETHWAN MAC:</span>
<?% } ?>
Comment thread
michaelamal marked this conversation as resolved.
<span class="value"><?% echo(strtoupper(getStr("Device.DeviceInfo.X_COMCAST-COM_CM_MAC"))); ?></span>
<?% } ?>
</div>
<?% if(is_wps_supported()) { ?>
Expand Down