0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2025-01-10 19:11:54 +00:00
bird/yang/show_status.yang

68 lines
1.1 KiB
YANG
Raw Normal View History

2023-11-15 10:17:55 +00:00
module show_status {
namespace ".";
prefix "status";
description "cli show status format";
typedef date-and-time {
type string {
pattern '\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?'
2023-11-15 10:17:55 +00:00
+ '(Z|[\+\-]\d{2}:\d{2})';
}
}
grouping timer {
leaf remains {
type decimal64 {
fraction-digits 3;
}
}
leaf count_time {
type uint32;
}
2023-11-15 10:17:55 +00:00
}
container message {
container header {
leaf bird {
type string;
}
leaf version {
type string;
}
}
container body {
leaf router_id {
type string;
}
leaf hostname {
type string;
}
leaf server_time {
type date-and-time;
}
leaf last_reboot {
type date-and-time;
}
leaf last_reconfiguration {
type date-and-time;
}
container gr_restart {
leaf waiting_for_n_channels_to_recover {
type int32;
}
container wait_timer {
2023-11-23 08:23:46 +00:00
uses timer;
}
}
2023-11-15 10:17:55 +00:00
}
leaf state {
type string;
}
}
}