cli_print_fmt1 1 "Address" "$(device_get_address ${device})"
cli_space
# Print the link speed for ethernet devices.
if device_is_up ${device} &>/dev/null; then
cli_print_fmt1 1 "Address" "$(device_get_address ${device})"
cli_space
# Print the link speed for ethernet devices.
if device_is_up ${device} &>/dev/null; then
- local device_type=$(device_get_type ${device})
- if [ "${device_type}" != "real" ]; then
+ # This can only be executed for ethernet (or compatible) devices
+ if ! device_is_ethernet_compatible "${device}"; then