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.
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.