Skip to content

Commit

Permalink
Update matching pattern for ipv6 addr
Browse files Browse the repository at this point in the history
Signed-off-by: lcheng <[email protected]>
  • Loading branch information
cliping committed Dec 18, 2024
1 parent 80ca89f commit 9db477f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions virttest/utils_libvirt/libvirt_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def _check_socket():
cmdRes = remote.run_remote_cmd(cmd, params)

if expected_network_conn_num:
pat_str = r".*%s:%s.*ESTABLISHED.*%s.*" % (
pat_str = r".*%s.*%s ESTABLISHED.*%s.*" % (
server_ip,
port_to_check,
service_to_check,
Expand All @@ -144,7 +144,7 @@ def _check_socket():
return None

if port_to_check != "4915":
pat_str = r".*%s:%s.*ESTABLISHED.*%s.*" % (
pat_str = r".*%s.*%s ESTABLISHED.*%s.*" % (
server_ip,
port_to_check,
service_to_check,
Expand Down

0 comments on commit 9db477f

Please sign in to comment.