0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2025-01-03 15:41:54 +00:00
bird/yang/show_status.yang
2023-11-23 09:23:46 +01:00

68 lines
1.1 KiB
YANG

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+)?'
+ '(Z|[\+\-]\d{2}:\d{2})';
}
}
grouping timer {
leaf remains {
type decimal64 {
fraction-digits 3;
}
}
leaf count_time {
type uint32;
}
}
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 {
uses timer;
}
}
}
leaf state {
type string;
}
}
}