mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-30 20:43:02 +02:00
The xPi's usually don't have a VPD so the chassis mac-address probed at boot is usually null in /run/system.json. This commit adds a fallbkack mechanism to populate this field so it can be used for unique hostnames even on these boards. Ths ietf-hardware.yang model does not have a notion of physical address, so we augment one tht is generic enought to be used for other hardware components than Ethernet, similar to what ietf-interfaces.yang use. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
38 lines
802 B
JSON
38 lines
802 B
JSON
{
|
|
"ietf-hardware:hardware": {
|
|
"component": [
|
|
{
|
|
"name": "mainboard",
|
|
"class": "iana-hardware:chassis",
|
|
"mfg-name": "QEMU",
|
|
"model-name": "VM",
|
|
"infix-hardware:phys-address": "00:a0:85:00:03:00",
|
|
"state": {
|
|
"admin-state": "unknown",
|
|
"oper-state": "enabled"
|
|
}
|
|
},
|
|
{
|
|
"name": "product",
|
|
"infix-hardware:vpd-data": {}
|
|
},
|
|
{
|
|
"state": {
|
|
"admin-state": "locked",
|
|
"oper-state": "enabled"
|
|
},
|
|
"name": "USB",
|
|
"class": "infix-hardware:usb"
|
|
},
|
|
{
|
|
"state": {
|
|
"admin-state": "locked",
|
|
"oper-state": "enabled"
|
|
},
|
|
"name": "USB2",
|
|
"class": "infix-hardware:usb"
|
|
}
|
|
]
|
|
}
|
|
}
|