Skip to content

unsupported operand type after netbox upgrade and netbox-sync update #456

@Gimly86

Description

@Gimly86

Hello,

I updated my Netbox from 3.4.x to 4.1.11 andnetbox-sync to 1.8.0 via GIT, and when I launche the command, I have this error :

Traceback (most recent call last):
File "/home/SOS-DATA/netbox-sync/netbox-sync.py", line 23, in
from module.sources import instantiate_sources
File "/home/SOS-DATA/netbox-sync/module/sources/init.py", line 11, in
from module.sources.vmware.connection import VMWareHandler
File "/home/SOS-DATA/netbox-sync/module/sources/vmware/connection.py", line 29, in
from module.sources.common.source_base import SourceBase
File "/home/SOS-DATA/netbox-sync/module/sources/common/source_base.py", line 22, in
class SourceBase:
File "/home/SOS-DATA/netbox-sync/module/sources/common/source_base.py", line 182, in SourceBase
def return_longest_matching_prefix_for_ip(self, ip_to_match=None, site_name=None) -> NBPrefix|None:
TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'

I dos this :

  • delete cache => same error
  • remove netbox-sync and reinstall netbox-sync from fresh install => same error.

Do you have an idea to solve my problem, please ?

Thanks in advance.

Best regards,

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions