0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-23 02:01:55 +00:00
bird/yang/show_protocols.yang

48 lines
712 B
YANG
Raw Normal View History

module show_protocols {
namespace ".";
prefix "protocols";
description "cli show protocols 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})';
}
}
typedef state {
type enumeration {
enum up;
enum down;
}
}
container message {
list table {
key "name";
leaf name {
type string;
}
leaf proto {
type string;
}
leaf table {
type string;
}
leaf state {
type state;
}
leaf since {
type date-and-time;
}
leaf info {
type string;
}
}
}
}