Skip to content

None api version after update Netbox to version 3.0.1 #88

@Sivolen

Description

@Sivolen

Hi, i have a problem after update NetBox to to version 3.0.1


a.gridnev@netbox:/opt/scripts/netbox-sync$ ./netbox-sync.py -l DEBUG2
2021-09-03 09:29:23,159 - INFO: Starting NetBox Sync
2021-09-03 09:29:23,159 - DEBUG: Using config file: /opt/scripts/netbox-sync/settings.ini
2021-09-03 09:29:23,161 - DEBUG: Config: netbox.api_token = 02a***
2021-09-03 09:29:23,161 - DEBUG: Config: netbox.host_fqdn = 10.0.2.18
2021-09-03 09:29:23,161 - DEBUG: Config: netbox.port = 443
2021-09-03 09:29:23,161 - DEBUG: Config: netbox.disable_tls = False
2021-09-03 09:29:23,161 - DEBUG: Config: netbox.validate_tls_certs = False
2021-09-03 09:29:23,161 - DEBUG: Config: netbox.prune_enabled = True
2021-09-03 09:29:23,161 - DEBUG: Config: netbox.prune_delay_in_days = 30
2021-09-03 09:29:23,161 - DEBUG: Config: netbox.default_netbox_result_limit = 200
2021-09-03 09:29:23,162 - DEBUG: Config: netbox.timeout = 30
2021-09-03 09:29:23,162 - DEBUG: Config: netbox.max_retry_attempts = 4
2021-09-03 09:29:23,162 - DEBUG: Config: netbox.use_caching = True
2021-09-03 09:29:23,162 - DEBUG: Created new requests Session for NetBox.
2021-09-03 09:29:23,240 - INFO: Successfully connected to NetBox '10.0.2.18'
2021-09-03 09:29:23,240 - DEBUG: Detected NetBox API version: None
Unable to determine NetBox version, HTTP header 'API-Version' missing.

Temporarily changed the code

       #api_version = self.get_api_version()
        api_version = "3.0"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions