0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-23 10:11:53 +00:00
bird/yang/show_status.yang

61 lines
969 B
YANG
Raw Normal View History

2023-11-15 10:17:55 +00:00
module show_status {
namespace ".";
prefix "show_status";
2023-11-15 10:17:55 +00:00
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 uint64;
}
leaf count_time {
type uint64;
}
2023-11-15 10:17:55 +00:00
}
container message {
leaf version {
type string;
2023-11-15 10:17:55 +00:00
}
container body {
leaf router_id {
type int32;
2023-11-15 10:17:55 +00:00
}
leaf hostname {
type string;
}
leaf server_time {
type int32;
2023-11-15 10:17:55 +00:00
}
leaf last_reboot {
type int32;
2023-11-15 10:17:55 +00:00
}
leaf last_reconfiguration {
type int32;
2023-11-15 10:17:55 +00:00
}
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;
}
}
}