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; } } } }