Files
infix/test/case/statd/system/ietf-hardware.json
T
Joachim Wiberg 4b55e38741 board/aarch64: use %m modifier in default xPi hostnames
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>
2025-10-31 13:26:08 +01:00

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"
}
]
}
}