fix(striker-ui-api): fallback to iface device when iface name isn't in expected format
This commit is contained in:
parent
f526a6a853
commit
850a55151f
@ -122,7 +122,13 @@ export const getHostConnection = buildGetRequestHandler(
|
|||||||
ip_add.ip_address_address,
|
ip_add.ip_address_address,
|
||||||
CASE
|
CASE
|
||||||
WHEN ip_add.ip_address_on_type = 'interface'
|
WHEN ip_add.ip_address_on_type = 'interface'
|
||||||
THEN net_int.network_interface_name
|
THEN (
|
||||||
|
CASE
|
||||||
|
WHEN net_int.network_interface_name ~* '.*n\\d+_link\\d+'
|
||||||
|
THEN net_int.network_interface_name
|
||||||
|
ELSE net_int.network_interface_device
|
||||||
|
END
|
||||||
|
)
|
||||||
ELSE bon.bond_active_interface
|
ELSE bon.bond_active_interface
|
||||||
END AS network_name
|
END AS network_name
|
||||||
FROM ip_addresses AS ip_add
|
FROM ip_addresses AS ip_add
|
||||||
|
Loading…
Reference in New Issue
Block a user