mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-04 01:33:56 +08:00
🏅 Sync 2026-10-10 12:03:15
This commit is contained in:
1 parent
ad68a3cd65
commit
f080de4b89
109 files changed
+72311
-621
No files matched your search
@@ -56,6 +56,9 @@ function addKnownPort(knownPorts, seenPorts, role, device, extra)
|
||||
label: device
|
||||
}, extra || {});
|
||||
|
||||
if (port.label === 'cpu')
|
||||
return;
|
||||
|
||||
if (!port.netdev && !port.swstate)
|
||||
port.netdev = network.instantiateDevice(device);
|
||||
|
||||
@@ -211,7 +214,11 @@ function addResolvedPort(knownPorts, seenPorts, role, device, mapping, board, sw
|
||||
});
|
||||
}
|
||||
else {
|
||||
addKnownPort(knownPorts, seenPorts, role, value);
|
||||
const deviceInfo = L.isObject(board) && L.isObject(board['network-device'])
|
||||
? board['network-device'][value] : null;
|
||||
|
||||
addKnownPort(knownPorts, seenPorts, role, value,
|
||||
L.isObject(deviceInfo) && isString(deviceInfo.label) ? { label: deviceInfo.label } : null);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user