Skip to content
Snippets Groups Projects
Commit ab5d259d authored by Karel van Klink's avatar Karel van Klink :smiley_cat: Committed by Neda Moeini
Browse files

add device removal method to Kentik service

parent 3c79075c
No related branches found
No related tags found
1 merge request!235Add a Kentik service to GSO
......@@ -144,3 +144,8 @@ class KentikClient:
self._send_request("DELETE", f"v5/device/{device_id}")
self._send_request("DELETE", f"v5/device/{device_id}")
def remove_device_by_fqdn(self, fqdn: str, *, archive: bool = True) -> None:
"""Remove a device from Kentik, by its :term:`FQDN`."""
device_id = self.get_device_by_name(fqdn)["id"]
self.remove_device(device_id, archive=archive)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment