Skip to content

Commit

Permalink
Merge pull request #3836 from yalzhang/fix_multipath_passt_ip6
Browse files Browse the repository at this point in the history
Report error when there is multipath ipv6 router
  • Loading branch information
chloerh authored Jan 29, 2024
2 parents fe65ef1 + b3be830 commit 9485fc6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions virttest/utils_net.py
Original file line number Diff line number Diff line change
Expand Up @@ -3929,6 +3929,9 @@ def get_default_gateway(iface_name=False, session=None, ip_ver='ipv4',
except (aexpect.ShellError, aexpect.ShellTimeoutError, process.CmdError):
LOG.error("Failed to get the default GateWay")
return None
if ip_ver == 'ipv6' and 'fe80:' not in output.strip():
LOG.error("Multipath ipv6 router can not be recognized!")
return None
return output.strip()


Expand Down

0 comments on commit 9485fc6

Please sign in to comment.