mirror of
https://github.com/systemd/systemd.git
synced 2025-02-23 13:57:33 +03:00
networkctl: add field 'Required For Online'
This commit is contained in:
parent
7c644a6966
commit
003015af5a
@ -2226,6 +2226,16 @@ static int link_status_one(
|
|||||||
return table_log_add_error(r);
|
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) {
|
if (lease) {
|
||||||
const void *client_id;
|
const void *client_id;
|
||||||
size_t client_id_len;
|
size_t client_id_len;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user