namespace ".";
prefix "protocols_all";
+
+ import ietf-yang-types {
+ prefix yang;
+ }
include "show_protocols_bgp";
include "show_protocols_rpki";
description "cli show protocols all 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 ip-address {
- type union {
- type ipv4-address;
- type ipv6-address;
- }
- }
-
- typedef ipv4-address {
- type string {
- pattern
- '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}'
- + '([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])'
- + '(%[\p{N}\p{L}]+)?';
- }
- }
-
- typedef ipv6-address {
- type string {
- pattern '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}'
- + '((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|'
- + '(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\.){3}'
- + '(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))'
- + '(%[\p{N}\p{L}]+)?';
- pattern '(([^:]+:){6}(([^:]+:[^:]+)|(.*\..*)))|'
- + '((([^:]+:)*[^:]+)?::(([^:]+:)*[^:]+)?)'
- + '(%.+)?';
- }
- }
typedef status {
type enumeration {
type state;
}
leaf since {
- type date-and-time;
+ type yang:date-and-time;
}
leaf info {
type string;
belongs-to show_protocols_all {
prefix "show_protocols_all";
}
+ import ietf-yang-types {
+ prefix yang;
+ }
+ import ietf-inet-types {
+ prefix inet;
+ }
description "cli show bgp";
choice is_dynamic {
case dynamic {
leaf neighbor_range {
- type ip-address;
+ type inet:ip-address;
}
}
case nondinamic {
leaf neighbor_address {
- type ip-address;
+ type inet:ip-address;
}
}
}
case start_state {
container error_wait {
leaf remains {
- type date-and-time;
+ type yang:date-and-time;
}
leaf delay {
type uint32;
}
container bs_active {
leaf remains {
- type date-and-time;
+ type yang:date-and-time;
}
leaf delay {
type uint32;
}
container restart {
leaf restart_timer{
- type date-and-time;
+ type yang:date-and-time;
}
}
}
}
}
leaf source_address {
- type ip-address;
+ type inet:ip-address;
}
container hold_timer {
uses timer;
type string;
}
leaf ll_stale_timer {
- type date-and-time;
+ type yang:date-and-time;
}
container ipa_zero {
leaf next_hop_addr {
- type ip-address;
+ type inet:ip-address;
}
leaf link_addr {
- type ip-address;
+ type inet:ip-address;
}
}
leaf ipv4_table {
}
}
leaf bgp_next_hop {
- type ip-address;
+ type inet:ip-address;
}
}
}