Bug #12443
closedUpdating the mac address not supported on physical interfaces
Description
When the mac address of a physical interface changes the parser doesn't support updating the existing interface object. Often times the "physical" interface will actually be virtual and the mac address may unexpectedly change (notable in OpenStack environments). In combination with #12441 this results in duplicate entires in the `nics` table with the same identifier, which breaks editing the host on the web interface and clutters the database. With #12441 resolved Host::Base.import.facts skips creating or updating existing nics with changed mac addresses. If it is possible without disturbing existing functionality, it would be ideal to update the Host::Base.get_interface_scope logic to update the existing nic object instead of attempting to create a new one.