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

Revert "auto-fix a lot of styling errors, and ignore documentation warnings in test files"

This reverts commit 4bdcafb2
parent afb6ab5c
No related branches found
No related tags found
No related merge requests found
Pipeline #84550 failed
This commit is part of merge request !111. Comments created here will be created in the context of that merge request.
......@@ -110,23 +110,12 @@ def list() -> None: # noqa: A001
@list.command()
@click.option("--fqdn", help="Device name to list interfaces")
@click.option(
"--speed",
default="1000",
help="Interface speed to list interfaces (default 1000=1G)",
)
@click.option("--speed", default="1000", help="Interface speed to list interfaces (default 1000=1G)")
def interfaces(fqdn: str, speed: str) -> None:
"""List all interfaces that belong to a given :term:`FQDN`."""
click.echo(f"Listing all interfaces for: device with fqdn={fqdn}, speed={speed}")
interface_list = NetboxClient().get_interfaces_by_device(fqdn, speed)
display_fields = [
"name",
"enabled",
"mark_connected",
"custom_fields",
"lag",
"speed",
]
display_fields = ["name", "enabled", "mark_connected", "custom_fields", "lag", "speed"]
iface_list = [dict(iface) for iface in interface_list]
table = convert_to_table(iface_list, display_fields)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment