mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-08 20:28:43 +00:00
48 lines
712 B
YANG
48 lines
712 B
YANG
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;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|