Update
This commit is contained in:
parent
7888fc4090
commit
36dc75bee8
|
|
@ -1229,6 +1229,10 @@ Ports Missing/Down: ${missing.length}\n\n`
|
|||
lineId: this.config.id,
|
||||
data: ports,
|
||||
})
|
||||
if (ports.length === this.config.ports.length) {
|
||||
this.sendReportPhysicalTest()
|
||||
this.endTesting()
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
console.log('checkingPhysicalPort', error)
|
||||
|
|
@ -1857,8 +1861,7 @@ ${log}
|
|||
IOS: <b>${dataShowVersion?.SOFTWARE_IMAGE ?? ''}</b> <b>${dataShowVersion?.VERSION ?? ''}</b><br/>
|
||||
MEM: <b>${dataShowVersion?.MEMORY ? convertFromKilobytesString(dataShowVersion?.MEMORY) : ''}</b><br/>
|
||||
FLASH: <b>${dataShowVersion?.USB_FLASH ? convertFromKilobytesString(dataShowVersion?.USB_FLASH) : ''}</b><br/>
|
||||
Licenses: <b>${
|
||||
dataShowLic
|
||||
Licenses: <b>${dataShowLic
|
||||
? dataShowLic
|
||||
?.filter((el) => el.LICENSE_TYPE?.toLowerCase()?.includes('permanent'))
|
||||
?.map((v) => v.FEATURE)
|
||||
|
|
@ -1872,8 +1875,7 @@ ${log}
|
|||
Total Ports: ${portPhysical?.length}<br/>
|
||||
Ports Tested (Link UP): <b style="color: #008000;">${tested.length} (${testedPoE?.length} PoE, ${testedSFP?.length} SFP)</b><br/>
|
||||
Ports Missing/Down: <b style="color: #ff0000;">${missing.length}</b><br/>
|
||||
${
|
||||
missingPoE?.length
|
||||
${missingPoE?.length
|
||||
? `
|
||||
<br/><b style="color: #ff0000;">Ports Missing PoE</b><br/>
|
||||
────────────────────────────────<br/>
|
||||
|
|
@ -1881,8 +1883,7 @@ ${log}
|
|||
`
|
||||
: ''
|
||||
}
|
||||
${
|
||||
missingSFP?.length
|
||||
${missingSFP?.length
|
||||
? `
|
||||
<br/><b style="color: #ff0000;">Ports Missing SFP</b><br/>
|
||||
────────────────────────────────<br/>
|
||||
|
|
|
|||
|
|
@ -181,22 +181,19 @@ export class PhysicalPortTest {
|
|||
</tr>
|
||||
</table>
|
||||
<br/>
|
||||
${
|
||||
missing.length
|
||||
${missing.length
|
||||
? `
|
||||
────────────────────────────────<br/>
|
||||
<b style="color: #ff0000;">Missing Ports</b><br/>
|
||||
<table cellpadding="6" cellspacing="0" border="1" style="margin-top: 10px; border-collapse: collapse; width: 100%">
|
||||
<tr>
|
||||
${
|
||||
missingPoE?.length
|
||||
${missingPoE?.length
|
||||
? `<td>
|
||||
<div style="column-count: 12;">${missingPoE.map((p) => this.normalizePortName(p.name)).join('<br/>')}</div>
|
||||
</td>`
|
||||
: ''
|
||||
}
|
||||
${
|
||||
missingSFP?.length
|
||||
${missingSFP?.length
|
||||
? `<td>
|
||||
<div style="column-count: 4;">${missingSFP.map((p) => this.normalizePortName(p.name)).join('<br/>')}</div>
|
||||
</td>`
|
||||
|
|
@ -276,6 +273,10 @@ export class PhysicalPortTest {
|
|||
}
|
||||
})
|
||||
}
|
||||
if (ports.length === this.expectedPorts.length) {
|
||||
this.done = true
|
||||
this.onDone()
|
||||
}
|
||||
}
|
||||
|
||||
return this.getTestedPorts()
|
||||
|
|
|
|||
|
|
@ -41,6 +41,7 @@ const parseLog = (data: string) => {
|
|||
})
|
||||
// If "pid", "vid", or "sn" are matched, push a completed record
|
||||
if (currentRecord.pid || currentRecord.vid || currentRecord.sn) {
|
||||
if (!currentRecord?.name?.toLowerCase().includes('stack'))
|
||||
records.push({ ...currentRecord })
|
||||
currentRecord = {
|
||||
name: '',
|
||||
|
|
|
|||
Loading…
Reference in New Issue