KeyError: 'interface:type' #141
Labels
No labels
help wanted
need testing
status: accepted
status: discussing
type: bug
type: documentation
type: duplicate
type: enhancement
type:hardware
type: invalid
type: major feature
type: minor feature
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: DGNum/netbox-agent#141
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi
Running on virtualbox.
Traceback (most recent call last): File "/usr/local/bin/netbox_agent", line 11, in <module> sys.exit(main()) File "/usr/local/lib/python3.6/dist-packages/netbox_agent/cli.py", line 44, in main return run(config) File "/usr/local/lib/python3.6/dist-packages/netbox_agent/cli.py", line 39, in run server.netbox_create_or_update(config) File "/usr/local/lib/python3.6/dist-packages/netbox_agent/virtualmachine.py", line 76, in netbox_create_or_update self.network.create_or_update_netbox_network_cards() File "/usr/local/lib/python3.6/dist-packages/netbox_agent/network.py", line 399, in create_or_update_netbox_network_cards interface = self.create_netbox_nic(nic) File "/usr/local/lib/python3.6/dist-packages/netbox_agent/network.py", line 246, in create_netbox_nic type = self.get_netbox_type_for_nic(nic) File "/usr/local/lib/python3.6/dist-packages/netbox_agent/network.py", line 162, in get_netbox_type_for_nic return self.dcim_choices['interface:type']['Virtual'] KeyError: 'interface:type'
Hi @strus38
I'll test this today
Any luck? ;-)
I haven't been able to reproduce your issue. Which netbox version are you using ?
Netbox 2.2.6, let me upgrade and I come back to you.
Thanks!
Le mer. 1 juil. 2020 à 19:49, Solvik notifications@github.com a écrit :
Oh, it's a very old version.
You have this error because in the latest release I've upgraded
netbox-agent
to be able to use the deprecation of the choice method (https://github.com/Solvik/netbox-agent/pull/127) that happened in 2.8 :)Reinstalling the 2.8 as we speak. Thanks!
Le mer. 1 juil. 2020 à 19:54, Solvik notifications@github.com a écrit :
Works like a charm, except the 'tun0' interfaces ... But I skipped them for
now.
Thanks!
Le mer. 1 juil. 2020 à 19:56, Indigo Ping indigoping4cgmi@gmail.com a
écrit :
I'd be happy to know why and fix it if necessary
Le mer. 1 juil. 2020 à 20:08, strus38 notifications@github.com a écrit :
Here is the error when those kind of interfacees are up:
Ok so there's in fact a buf for TUN interface on virtual machine
Interface's type with VM can only be virtual, we'll have to fix this