Skip to content
Open
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
2 changes: 2 additions & 0 deletions ece_os_readiness/mor.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@ def get_ip_of_ifname(netif_name: str) -> str:
return ''

errcnt = 0
netif_name = netif_name.split('@')[0]
cmd = f"ip addr show {netif_name}"
try:
out, err, rc = runcmd(cmd)
Expand Down Expand Up @@ -4707,6 +4708,7 @@ def get_speed_of_network_interface(netif: str) -> int:
if not netif or isinstance(netif, str) is False:
print(f"{ERROR} Invalid parameter netif: {netif}")
return -1
netif = netif.split('@')[0]
speed_file = f"/sys/class/net/{netif}/speed"
speed = -1
try:
Expand Down