Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ethernet_interface: fix color code on RHEL 10.0 #6070

Merged
merged 1 commit into from
Jan 8, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def run(test, params, env):
outside_ip = params.get('outside_ip')
host_iface = params.get('host_iface')
host_iface = host_iface if host_iface else utils_net.get_default_gateway(
iface_name=True, force_dhcp=True).split()[0]
iface_name=True, force_dhcp=True, json=True).split()[0]
host_ip = utils_net.get_ip_address_by_interface(host_iface, ip_ver='ipv4')
status_error = 'yes' == params.get('status_error', 'no')
err_msg = params.get('err_msg')
Expand Down Expand Up @@ -125,7 +125,7 @@ def run(test, params, env):
'outside_ip': outside_ip,
'host_public_ip': host_ip,
}
vm_default_gw = utils_net.get_default_gateway(session=session)
vm_default_gw = utils_net.get_default_gateway(session=session, json=True)

if iface_amount == 'two_ifaces':
ping_params = {
Expand Down