networkctl: add field 'Required For Online'

This commit is contained in:
Dan Streetman
2021-06-24 08:32:21 -04:00
parent 7c644a6966
commit 003015af5a
+10
View File
@@ -2226,6 +2226,16 @@ static int link_status_one(
return table_log_add_error(r);
}
r = sd_network_link_get_required_for_online(info->ifindex);
if (r >= 0) {
r = table_add_many(table,
TABLE_EMPTY,
TABLE_STRING, "Required For Online:",
TABLE_BOOLEAN, r);
if (r < 0)
return table_log_add_error(r);
}
if (lease) {
const void *client_id;
size_t client_id_len;