Skip to content
Snippets Groups Projects
Verified Commit afb6ab5c authored by Karel van Klink's avatar Karel van Klink :smiley_cat:
Browse files

resolve documentation linting errors

parent 2905c7d1
No related branches found
No related tags found
1 merge request!111Feature/ruff everything party hat emoji
GÉANT Automation Platform GÉANT Automation Platform
[GSO|gso] [GSO|gso]
Vereniging Vereniging
TERMINATE [[T|t]ERMINATE|terminate]
WFO WFO
Ansible Ansible
[Dd]eprovision [Dd]eprovision
...@@ -11,3 +11,4 @@ Dark_fiber ...@@ -11,3 +11,4 @@ Dark_fiber
[A|a]ddress [A|a]ddress
[I|i]ptrunk [I|i]ptrunk
[A|a]llocate [A|a]llocate
PHASE 1
...@@ -243,7 +243,7 @@ def find_host_by_ip( ...@@ -243,7 +243,7 @@ def find_host_by_ip(
:type ip_addr: ipaddress.IPv4Address | ipaddress.IPv6Address :type ip_addr: ipaddress.IPv4Address | ipaddress.IPv6Address
""" """
conn, _ = _setup_connection() conn, _ = _setup_connection()
if ip_addr.version == 4: # noqa: PLR2004, the 4 in IPv4 is well-known and not a "magic value". if ip_addr.version == 4: # noqa: PLR2004, the 4 in IPv4 is well-known and not a "magic value."
return objects.HostRecord.search( return objects.HostRecord.search(
conn, conn,
ipv4addr=ip_addr, ipv4addr=ip_addr,
......
...@@ -21,15 +21,19 @@ from gso.services.subscriptions import get_active_subscriptions_by_field_and_val ...@@ -21,15 +21,19 @@ from gso.services.subscriptions import get_active_subscriptions_by_field_and_val
class LAGMember(BaseModel): class LAGMember(BaseModel):
"""A :term:`LAG` member interface that consists of a name and description.""" """A :term:`LAG` member interface that consists of a name and description.
TODO: validate interface name
"""
# TODO: validate interface name
interface_name: str interface_name: str
interface_description: str interface_description: str
def __hash__(self) -> int: def __hash__(self) -> int:
"""Calculate the hash based on the interface name and description, so that uniqueness can be determined.""" """Calculate the hash based on the interface name and description, so that uniqueness can be determined.
# TODO: check if this is still needed
TODO: Check if this is still needed
"""
return hash((self.interface_name, self.interface_description)) return hash((self.interface_name, self.interface_description))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment