When I run the create_vm.py script in Netbox 4.2.1, I receive the following error:
An exception occurred: TypeError: VMInterface() got unexpected keyword arguments: 'mac_address'
Traceback (most recent call last):
File "/opt/netbox/netbox/extras/jobs.py", line 43, in run_script
script.output = script.run(data, commit)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/netbox/netbox/scripts/create_vm.py", line 62, in run
vminterface = VMInterface(
^^^^^^^^^^^^
File "/opt/netbox/venv/lib64/python3.11/site-packages/django/db/models/base.py", line 567, in init
raise TypeError(
TypeError: VMInterface() got unexpected keyword arguments: 'mac_address'