mirror of
https://github.com/Jerryplusy/AI-powered-switches.git
synced 2025-10-14 09:49:19 +00:00
feat:telnet发送配置命令
This commit is contained in:
parent
2af76f8a54
commit
bccdde74ad
@ -110,6 +110,9 @@ class SwitchConfigurator:
|
|||||||
|
|
||||||
output = ""
|
output = ""
|
||||||
for cmd in commands:
|
for cmd in commands:
|
||||||
|
if cmd.startswith("!"):
|
||||||
|
logger.debug(f"跳过特殊命令: {cmd}")
|
||||||
|
continue
|
||||||
logger.info(f"发送命令: {cmd}")
|
logger.info(f"发送命令: {cmd}")
|
||||||
writer.write(f"{cmd}\n")
|
writer.write(f"{cmd}\n")
|
||||||
await writer.drain()
|
await writer.drain()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user