Skip to content

create_vm.py - TypeError: VMInterface() got unexpected keyword arguments: 'mac_address' #116

@jbcreek

Description

@jbcreek

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions