When the Netbox import script from PuppetDB is run, the interface type is properly set for new interfaces, but it's not corrected for already created interfaces, notably PRIMARY.
We need to modify the script so that it checks and update the interface type from the PuppetDB data even on already created interfaces.