diff --git a/router/insert_router.py b/router/insert_router.py index d965842..41f1360 100644 --- a/router/insert_router.py +++ b/router/insert_router.py @@ -28,7 +28,7 @@ def insert_router_ipv4(insert: [(IPv4Address, str, IPv4Address, int)], interface for i in insert: if ((i[0] not in ipl) or not (ipl[ipl.find(i[0]):5].replace(" ", ""))) and (i[1] not in ipl): - cmd = ["ssh", "-i", key, "-o", "StrictHostKeyChecking no", f"{user}@{host}", "-p", port, f"/ip arp add address={i[0]} mac-address={i[1]} interface={interface}".replace("'", "")] + cmd = ["ssh", "-i", key, "-o", "StrictHostKeyChecking no", f"{user}@{host}", "-p", str(port), f"/ip arp add address={i[0]} mac-address={i[1]} interface={interface}".replace("'", "")] if not debug: run(cmd) else: diff --git a/whmcs/insert_whmcs.py b/whmcs/insert_whmcs.py index ce4bf2f..1cbca72 100644 --- a/whmcs/insert_whmcs.py +++ b/whmcs/insert_whmcs.py @@ -21,7 +21,7 @@ def insert_whmcs_ipv4(insert: [(IPv4Address, str, IPv4Address, int)], interface: gateway = insert[0][0] del insert[0] # Get vlan if given - if interface[:5] == "vlan": + if interface[:4] == "vlan": try: vlan = int(interface[4:]) except ValueError: