openbmc / phosphor-inventory-manager

Apache License 2.0
8 stars 9 forks source link

Embed the Ethernet Interface Name inside the Inventory dbus object #5

Open manojkiraneda opened 4 years ago

manojkiraneda commented 4 years ago

phosphor-networkd, is now relying on a static JSON file that is placed at /usr/share/network during compile time to get the mapping definitions of system ethernet interface name vs the search pattern word of the respective ethernet Interface object path in the Inventory to set the MAC address during first boot.

The Idea behind this issue is to track or have an efficient way to put the system Ethernet interface name inside the Inventory/entity manager(incase we move in future) DBUS object along with the corresponding MAC address , so that phosphor-networkd does not have to maintain any json mapping.

Following is the commit which uses the config.json for reference: https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-networkd/+/32124