Thomas Vachuska | 8ca75a2 | 2017-08-24 16:12:59 -0700 | [diff] [blame] | 1 | module openconfig-rib-bgp-types { |
| 2 | |
| 3 | yang-version "1"; |
| 4 | |
| 5 | // namespace |
| 6 | namespace "http://openconfig.net/yang/rib/bgp-types"; |
| 7 | |
| 8 | prefix "oc-bgprib-types"; |
| 9 | |
| 10 | import openconfig-extensions { prefix oc-ext; } |
| 11 | |
| 12 | organization "OpenConfig working group"; |
| 13 | |
| 14 | contact |
| 15 | "OpenConfig working group |
| 16 | www.openconfig.net"; |
| 17 | |
| 18 | description |
| 19 | "Defines identity and type defintions associated with |
| 20 | the OpenConfig BGP RIB modules"; |
| 21 | |
| 22 | oc-ext:openconfig-version "0.3.0"; |
| 23 | |
| 24 | revision "2016-10-17" { |
| 25 | description |
| 26 | "OpenConfig BGP RIB refactor"; |
| 27 | reference "0.3.0"; |
| 28 | } |
| 29 | |
| 30 | revision "2016-04-11" { |
| 31 | description |
| 32 | "OpenConfig public release"; |
| 33 | reference "0.2.0"; |
| 34 | } |
| 35 | |
| 36 | identity INVALID_ROUTE_REASON { |
| 37 | description |
| 38 | "Base identity for reason code for routes that are rejected as |
| 39 | invalid. Some derived entities are based on BMP v3"; |
| 40 | reference "BGP Monitoring Protocol (draft-ietf-grow-bmp-07)"; |
| 41 | } |
| 42 | |
| 43 | identity INVALID_CLUSTER_LOOP { |
| 44 | base INVALID_ROUTE_REASON; |
| 45 | description |
| 46 | "Route was invalid due to CLUSTER_LIST loop"; |
| 47 | } |
| 48 | |
| 49 | identity INVALID_AS_LOOP { |
| 50 | base INVALID_ROUTE_REASON; |
| 51 | description |
| 52 | "Route was invalid due to AS_PATH loop"; |
| 53 | } |
| 54 | |
| 55 | identity INVALID_ORIGINATOR { |
| 56 | base INVALID_ROUTE_REASON; |
| 57 | description |
| 58 | "Route was invalid due to ORIGINATOR_ID, e.g., update has |
| 59 | local router as originator"; |
| 60 | } |
| 61 | |
| 62 | identity INVALID_CONFED { |
| 63 | base INVALID_ROUTE_REASON; |
| 64 | description |
| 65 | "Route was invalid due to a loop in the AS_CONFED_SEQUENCE or |
| 66 | AS_CONFED_SET attributes"; |
| 67 | } |
| 68 | |
| 69 | identity BGP_NOT_SELECTED_BESTPATH { |
| 70 | description |
| 71 | "Base identity for indicating reason a route was was not |
| 72 | selected by BGP route selection algorithm"; |
| 73 | reference |
| 74 | "RFC 4271 - Section 9.1"; |
| 75 | } |
| 76 | |
| 77 | identity LOCAL_PREF_LOWER { |
| 78 | base BGP_NOT_SELECTED_BESTPATH; |
| 79 | description |
| 80 | "Route has a lower localpref attribute than current best path"; |
| 81 | reference |
| 82 | "RFC 4271 - Section 9.1.2"; |
| 83 | } |
| 84 | |
| 85 | identity AS_PATH_LONGER { |
| 86 | base BGP_NOT_SELECTED_BESTPATH; |
| 87 | description |
| 88 | "Route has a longer AS path attribute than current best path"; |
| 89 | reference |
| 90 | "RFC 4271 - Section 9.1.2.2 (a)"; |
| 91 | } |
| 92 | |
| 93 | identity ORIGIN_TYPE_HIGHER { |
| 94 | base BGP_NOT_SELECTED_BESTPATH; |
| 95 | description |
| 96 | "Route has a higher origin type, i.e., IGP origin is preferred |
| 97 | over EGP or incomplete"; |
| 98 | reference |
| 99 | "RFC 4271 - Section 9.1.2.2 (b)"; |
| 100 | } |
| 101 | |
| 102 | identity MED_HIGHER { |
| 103 | base BGP_NOT_SELECTED_BESTPATH; |
| 104 | description |
| 105 | "Route has a higher MED, or metric, attribute than the current |
| 106 | best path"; |
| 107 | reference |
| 108 | "RFC 4271 - Section 9.1.2.2 (c)"; |
| 109 | } |
| 110 | |
| 111 | identity PREFER_EXTERNAL { |
| 112 | base BGP_NOT_SELECTED_BESTPATH; |
| 113 | description |
| 114 | "Route source is via IGP, rather than EGP."; |
| 115 | reference |
| 116 | "RFC 4271 - Section 9.1.2.2 (d)"; |
| 117 | } |
| 118 | |
| 119 | identity NEXTHOP_COST_HIGHER { |
| 120 | base BGP_NOT_SELECTED_BESTPATH; |
| 121 | description |
| 122 | "Route has a higher interior cost to the next hop."; |
| 123 | reference |
| 124 | "RFC 4271 - Section 9.1.2.2 (e)"; |
| 125 | } |
| 126 | |
| 127 | identity HIGHER_ROUTER_ID { |
| 128 | base BGP_NOT_SELECTED_BESTPATH; |
| 129 | description |
| 130 | "Route was sent by a peer with a higher BGP Identifier value, |
| 131 | or router id"; |
| 132 | reference |
| 133 | "RFC 4271 - Section 9.1.2.2 (f)"; |
| 134 | } |
| 135 | |
| 136 | identity HIGHER_PEER_ADDRESS { |
| 137 | base BGP_NOT_SELECTED_BESTPATH; |
| 138 | description |
| 139 | "Route was sent by a peer with a higher IP address"; |
| 140 | reference |
| 141 | "RFC 4271 - Section 9.1.2.2 (g)"; |
| 142 | } |
| 143 | |
| 144 | identity BGP_NOT_SELECTED_POLICY { |
| 145 | description |
| 146 | "Base identity for reason code for routes that are rejected |
| 147 | due to policy"; |
| 148 | } |
| 149 | |
| 150 | identity REJECTED_IMPORT_POLICY { |
| 151 | base BGP_NOT_SELECTED_POLICY; |
| 152 | description |
| 153 | "Route was rejected after apply import policies"; |
| 154 | } |
| 155 | } |