Thomas Vachuska | 8ca75a2 | 2017-08-24 16:12:59 -0700 | [diff] [blame] | 1 | submodule openconfig-rib-bgp-table-attributes { |
| 2 | |
| 3 | belongs-to openconfig-rib-bgp { |
| 4 | prefix "oc-rib-bgp"; |
| 5 | } |
| 6 | |
| 7 | |
| 8 | // import some basic types |
| 9 | import openconfig-extensions { prefix oc-ext; } |
| 10 | import openconfig-types { prefix oc-types; } |
| 11 | import openconfig-rib-bgp-types { prefix oc-bgpribt; } |
| 12 | |
| 13 | // meta |
| 14 | organization "OpenConfig working group"; |
| 15 | |
| 16 | contact |
| 17 | "OpenConfig working group |
| 18 | www.openconfig.net"; |
| 19 | |
| 20 | description |
| 21 | "This submodule contains common data definitions for data |
| 22 | related to a RIB entry, or RIB table."; |
| 23 | |
| 24 | |
| 25 | oc-ext:openconfig-version "0.3.0"; |
| 26 | |
| 27 | revision "2016-10-17" { |
| 28 | description |
| 29 | "OpenConfig BGP RIB refactor"; |
| 30 | reference "0.3.0"; |
| 31 | } |
| 32 | |
| 33 | |
| 34 | |
| 35 | grouping bgp-common-route-annotations-state { |
| 36 | description |
| 37 | "Data definitions for flags and other information attached |
| 38 | to routes in both LOC-RIB and Adj-RIB"; |
| 39 | |
| 40 | leaf last-modified { |
| 41 | type oc-types:timeticks64; |
| 42 | description |
| 43 | "Timestamp when this path was last modified. |
| 44 | |
| 45 | The value is the timestamp in seconds relative to |
| 46 | the Unix Epoch (Jan 1, 1970 00:00:00 UTC)."; |
| 47 | } |
| 48 | |
| 49 | leaf valid-route { |
| 50 | type boolean; |
| 51 | description |
| 52 | "Indicates that the route is considered valid by the |
| 53 | local router"; |
| 54 | } |
| 55 | |
| 56 | leaf invalid-reason { |
| 57 | type identityref { |
| 58 | base oc-bgpribt:INVALID_ROUTE_REASON; |
| 59 | } |
| 60 | description |
| 61 | "If the route is rejected as invalid, this indicates the |
| 62 | reason."; |
| 63 | } |
| 64 | |
| 65 | } |
| 66 | |
| 67 | grouping bgp-loc-rib-route-annotations-state { |
| 68 | description |
| 69 | "Data definitions for information attached to routes in the |
| 70 | LOC-RIB"; |
| 71 | |
| 72 | // placeholder for route metadata specific to the LOC-RIB |
| 73 | |
| 74 | } |
| 75 | |
| 76 | grouping bgp-adj-rib-in-post-route-annotations-state { |
| 77 | description |
| 78 | "Data definitions for information attached to routes in the |
| 79 | Adj-RIB-in post-policy table"; |
| 80 | |
| 81 | leaf best-path { |
| 82 | type boolean; |
| 83 | description |
| 84 | "Current path was selected as the best path."; |
| 85 | } |
| 86 | } |
| 87 | |
| 88 | grouping bgp-common-table-attrs-state { |
| 89 | description |
| 90 | "Common attributes attached to all routing tables"; |
| 91 | |
| 92 | // placeholder for metadata associated with all tables |
| 93 | } |
| 94 | |
| 95 | grouping bgp-common-table-attrs-top { |
| 96 | description |
| 97 | "Operational state data for common attributes attached to |
| 98 | all routing tables"; |
| 99 | // no enclosing container as this data will fit under an |
| 100 | // existing LOC-RIB container |
| 101 | |
| 102 | container state { |
| 103 | config false; |
| 104 | description |
| 105 | "Operational state data for data related to the entire |
| 106 | LOC-RIB"; |
| 107 | |
| 108 | uses bgp-common-table-attrs-state; |
| 109 | } |
| 110 | } |
| 111 | |
| 112 | |
| 113 | } |