Added top-level overall command

This commit is contained in:
Cian Hughes
2023-10-27 17:44:13 +01:00
parent dae9e33125
commit 6947fe8c99
4 changed files with 21 additions and 0 deletions

View File

@@ -90,6 +90,7 @@ def create_img(
str, typer.Option(help="Swarm token for connecting to the swarm", prompt=True)
],
) -> None:
"""Creates an ignition image for deploying a new node to the swarm"""
switch_ip_address = ipaddress.ip_address(switch_ip_address)
if switch_port > MAX_PORT:
raise ValueError(f"Port must be less than {MAX_PORT}")