mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2025-01-08 18:11:54 +00:00
41 lines
625 B
YANG
41 lines
625 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})';
|
|
}
|
|
}
|
|
|
|
container message {
|
|
list table {
|
|
key "name";
|
|
leaf name {
|
|
type string;
|
|
}
|
|
leaf proto {
|
|
type string;
|
|
}
|
|
leaf table {
|
|
type string;
|
|
}
|
|
leaf state {
|
|
type int8;
|
|
}
|
|
leaf since {
|
|
type date-and-time;
|
|
}
|
|
leaf info {
|
|
type string;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|