Skip to content

Commit 3915d18

Browse files
committed
fix(ont): error when fetch ETH ports in ONT (fixes #35)
1 parent 0a39e15 commit 3915d18

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ont.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def search_ont(sn: str, host: str) -> tuple[dict, str | None] | None:
7373
catv = _parse_port_status(_read_output(channel))
7474
catv_results.append(catv)
7575

76-
channel.send(bytes(f"display ont port state {ont_info['interface']['port']} {ont_info['ont_id']} eth-port all\n", 'utf-8'))
76+
channel.send(bytes(f"display ont port state {ont_info['interface']['port']} {ont_info['ont_id']} eth-port all\n\n", 'utf-8'))
7777
eth_results = _parse_eth_ports_status(_read_output(channel))
7878

7979
ont_info['catv'] = catv_results

0 commit comments

Comments
 (0)