Skip to content

get_bfd_device_state url includes an extra slash, causing a 404 #184

Description

@dfilion

The MonitorNetwork class base url ends with a slash character:

self.base_url = f'https://{self.host}:{self.port}/dataservice/'

The get_bfd_device_state method url includes an extra slash character when building the final url:

url = f"{self.base_url}/device/bfd/state/device?deviceId={system_ip}"

This results in a 404 because the url now contains two slash characters side-by-side:

Exception: https://hostname:443/dataservice//device/bfd/state/device?deviceId=10.10.10.10: Error 404 (not_found)

Other BFD related methods have the same problem.

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