Update form Report
This commit is contained in:
parent
02fdbcb166
commit
f3dbd3d4cc
|
|
@ -1115,6 +1115,8 @@ export default class LineConnection {
|
|||
ports: listPorts,
|
||||
})
|
||||
if (listPorts.length === 0) {
|
||||
this.config.listFeatureTested = [...new Set([...this.config.listFeatureTested, 'PHYSICAL'])]
|
||||
this.sendFeatureTested()
|
||||
console.log('End physical test')
|
||||
this.endTesting()
|
||||
return
|
||||
|
|
@ -1665,8 +1667,8 @@ ${log}
|
|||
<p>Station: <b>${this.config.stationName}</b></p>
|
||||
<p>Line: <b>${this.config.lineNumber}</b></p>
|
||||
<p>Model: <b>${pid}</b></p>
|
||||
<p>RAM: ${mem ? `<b>${mem + ' bytes'} (<span style="color: ${isWarningRAM ? 'red' : 'black'};">default: ${configRam.ram}</span>)</b>` : ''}</p>
|
||||
<p>FLASH: ${flash ? `<b>${flash + ' bytes'} (<span style="color: ${isWarningFlash ? 'red' : 'black'};">default: ${configRam.flash}</span>)</b>` : ''}</p>
|
||||
<p>RAM: ${mem ? `<b>${convertFromKilobytesString(mem)} (<span style="color: ${isWarningRAM ? 'red' : 'black'};">default: ${configRam.ram}</span>)</b>` : ''}</p>
|
||||
<p>FLASH: ${flash ? `<b>${convertFromKilobytesString(flash)} (<span style="color: ${isWarningFlash ? 'red' : 'black'};">default: ${configRam.flash}</span>)</b>` : ''}</p>
|
||||
<hr />
|
||||
<div style="white-space: break-spaces; background-color: #f5f5f5; color: black; padding: 8px; max-height: 500px; overflow-y: scroll; border: 1px #ccc solid;"><span style="color: black;">
|
||||
${escapeHtml(output)
|
||||
|
|
@ -1712,6 +1714,7 @@ ${log}
|
|||
const dataShowLic =
|
||||
showLicense?.textfsm && Array.isArray(showLicense?.textfsm) ? showLicense?.textfsm : null
|
||||
const issue = this.config?.latestScenario?.detectAI?.issue || []
|
||||
const summary = this.config?.latestScenario?.detectAI?.summary || ''
|
||||
const body = `<table cellpadding="6" cellspacing="0" border="1" style="margin-top: 10px; border-collapse: collapse; width: 100%">
|
||||
<tr>
|
||||
<td style="width: 50%; text-align: center;">DPELP</td>
|
||||
|
|
@ -1719,8 +1722,8 @@ ${log}
|
|||
</tr>
|
||||
<tr>
|
||||
<td style="width: 50%;">
|
||||
Model: <b>${this.config?.inventory?.pid ?? 'N/A'}</b> <b>${this.config?.inventory?.vid ?? 'N/A'}</b><br/>
|
||||
Serial Number: <b>${this.config?.inventory?.sn ?? 'N/A'}</b><br/>
|
||||
Model: <b>${this.config?.inventory?.pid ?? ''}</b> <b>${this.config?.inventory?.vid ?? ''}</b><br/>
|
||||
Serial Number: <b>${this.config?.inventory?.sn ?? ''}</b><br/>
|
||||
MAC: <b>${dataShowVersion?.MAC_ADDRESS ?? ''}</b><br/>
|
||||
IOS: <b>${dataShowVersion?.SOFTWARE_IMAGE ?? ''}</b> <b>${dataShowVersion?.VERSION ?? ''}</b><br/>
|
||||
MEM: <b>${dataShowVersion?.MEMORY ? convertFromKilobytesString(dataShowVersion?.MEMORY) : ''}</b><br/>
|
||||
|
|
@ -1733,8 +1736,8 @@ ${log}
|
|||
?.join(', ')
|
||||
: ''
|
||||
}</b><br/>
|
||||
Summary: <b>${this.config?.latestScenario?.detectAI?.summary || ''}</b><br/>
|
||||
Issues: <b>${issue?.length ? `<br>- ` + issue.join(`<br>- `) : 'No issues detected.'}</b><br/>
|
||||
Summary: <b style="color: ${!summary?.includes('No hardware issues found') ? '#ff0000' : ''};">${summary}</b><br/>
|
||||
Issues: <b style="color: ${issue.filter((el) => !el.includes('No issues detected')).length ? '#ff0000' : 'black'};">${issue?.length ? `<br>- ` + issue.join(`<br>- `) : 'No issues detected.'}</b><br/>
|
||||
</td>
|
||||
<td>
|
||||
Total Ports: ${portPhysical?.length}<br/>
|
||||
|
|
|
|||
Loading…
Reference in New Issue