Skip to content
Snippets Groups Projects
Commit 1f0416e6 authored by Karel van Klink's avatar Karel van Klink :smiley_cat: Committed by JORGE SASIAIN
Browse files

resolve documentation linting errors

parent 77b366b2
No related branches found
No related tags found
1 merge request!108NAT-315: Restore ISIS should be optional in migrate iptrunk
This commit is part of merge request !108. Comments created here will be created in the context of that merge request.
GÉANT Automation Platform
[GSO|gso]
Vereniging
TERMINATE
[[T|t]ERMINATE|terminate]
WFO
Ansible
[Dd]eprovision
......@@ -11,3 +11,4 @@ Dark_fiber
[A|a]ddress
[I|i]ptrunk
[A|a]llocate
PHASE 1
......@@ -243,7 +243,7 @@ def find_host_by_ip(
:type ip_addr: ipaddress.IPv4Address | ipaddress.IPv6Address
"""
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(
conn,
ipv4addr=ip_addr,
......
......@@ -21,15 +21,19 @@ from gso.services.subscriptions import get_active_subscriptions_by_field_and_val
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_description: str
def __hash__(self) -> int:
"""Calculate the hash based on the interface name and description, so that uniqueness can be determined."""
# TODO: check if this is still needed
"""Calculate the hash based on the interface name and description, so that uniqueness can be determined.
TODO: Check if this is still needed
"""
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