diff options
Diffstat (limited to 'cli/src/devices.c')
-rw-r--r-- | cli/src/devices.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cli/src/devices.c b/cli/src/devices.c index 8143f176aa..caaf7102ca 100644 --- a/cli/src/devices.c +++ b/cli/src/devices.c @@ -41,6 +41,7 @@ #endif #include <nm-device-infiniband.h> #include <nm-device-bond.h> +#include <nm-device-bridge.h> #include <nm-device-vlan.h> #include <nm-utils.h> #include <nm-setting-ip4-config.h> @@ -307,6 +308,8 @@ device_type_to_string (NMDevice *device) return NM_SETTING_BOND_SETTING_NAME; case NM_DEVICE_TYPE_VLAN: return NM_SETTING_VLAN_SETTING_NAME; + case NM_DEVICE_TYPE_BRIDGE: + return NM_SETTING_BRIDGE_SETTING_NAME; default: return _("Unknown"); } @@ -590,6 +593,8 @@ show_device_info (gpointer data, gpointer user_data) hwaddr = nm_device_bond_get_hw_address (NM_DEVICE_BOND (device)); else if (NM_IS_DEVICE_VLAN (device)) hwaddr = nm_device_vlan_get_hw_address (NM_DEVICE_VLAN (device)); + else if (NM_IS_DEVICE_BRIDGE (device)) + hwaddr = nm_device_bridge_get_hw_address (NM_DEVICE_BRIDGE (device)); state_str = g_strdup_printf ("%d (%s)", state, nmc_device_state_to_string (state)); reason_str = g_strdup_printf ("%d (%s)", reason, nmc_device_reason_to_string (reason)); |