Thomas Vachuska | 8ca75a2 | 2017-08-24 16:12:59 -0700 | [diff] [blame] | 1 | module openconfig-bgp { |
| 2 | |
| 3 | yang-version "1"; |
| 4 | |
| 5 | // namespace |
| 6 | namespace "http://openconfig.net/yang/bgp"; |
| 7 | |
| 8 | prefix "oc-bgp"; |
| 9 | |
| 10 | // import some basic inet types |
| 11 | import openconfig-extensions { prefix oc-ext; } |
| 12 | |
| 13 | // Include the OpenConfig BGP submodules |
| 14 | // Common: defines the groupings that are common across more than |
| 15 | // one context (where contexts are neighbor, group, global) |
| 16 | include openconfig-bgp-common; |
| 17 | // Multiprotocol: defines the groupings that are common across more |
| 18 | // than one context, and relate to Multiprotocol |
| 19 | include openconfig-bgp-common-multiprotocol; |
| 20 | // Structure: defines groupings that are shared but are solely used for |
| 21 | // structural reasons. |
| 22 | include openconfig-bgp-common-structure; |
| 23 | // Include peer-group/neighbor/global - these define the groupings |
| 24 | // that are specific to one context |
| 25 | include openconfig-bgp-peer-group; |
| 26 | include openconfig-bgp-neighbor; |
| 27 | include openconfig-bgp-global; |
| 28 | |
| 29 | // meta |
| 30 | organization |
| 31 | "OpenConfig working group"; |
| 32 | |
| 33 | contact |
| 34 | "OpenConfig working group |
| 35 | netopenconfig@googlegroups.com"; |
| 36 | |
| 37 | description |
| 38 | "This module describes a YANG model for BGP protocol |
| 39 | configuration.It is a limited subset of all of the configuration |
| 40 | parameters available in the variety of vendor implementations, |
| 41 | hence it is expected that it would be augmented with vendor- |
| 42 | specific configuration data as needed. Additional modules or |
| 43 | submodules to handle other aspects of BGP configuration, |
| 44 | including policy, VRFs, VPNs, and additional address families |
| 45 | are also expected. |
| 46 | |
| 47 | This model supports the following BGP configuration level |
| 48 | hierarchy: |
| 49 | |
| 50 | BGP |
| 51 | | |
| 52 | +-> [ global BGP configuration ] |
| 53 | +-> AFI / SAFI global |
| 54 | +-> peer group |
| 55 | +-> [ peer group config ] |
| 56 | +-> AFI / SAFI [ per-AFI overrides ] |
| 57 | +-> neighbor |
| 58 | +-> [ neighbor config ] |
| 59 | +-> [ optional pointer to peer-group ] |
| 60 | +-> AFI / SAFI [ per-AFI overrides ]"; |
| 61 | |
| 62 | oc-ext:openconfig-version "4.0.1"; |
| 63 | |
| 64 | revision "2017-07-30" { |
| 65 | description |
| 66 | "Clarification of add-paths send-max leaf"; |
| 67 | reference "4.0.1"; |
| 68 | } |
| 69 | |
| 70 | revision "2017-07-10" { |
| 71 | description |
| 72 | "Add error notifications; moved add-paths config; add AS |
| 73 | prepend policy features; removed unneeded config leaves"; |
| 74 | reference "4.0.0"; |
| 75 | } |
| 76 | |
| 77 | revision "2017-02-02" { |
| 78 | description |
| 79 | "Bugfix to remove remaining global-level policy data"; |
| 80 | reference "3.0.1"; |
| 81 | } |
| 82 | |
| 83 | revision "2017-01-26" { |
| 84 | description |
| 85 | "Add dynamic neighbor support, migrate to OpenConfig types"; |
| 86 | reference "3.0.0"; |
| 87 | } |
| 88 | |
| 89 | revision "2016-06-21" { |
| 90 | description |
| 91 | "OpenConfig BGP refactor"; |
| 92 | reference "2.1.1"; |
| 93 | } |
| 94 | |
| 95 | revision "2016-06-06" { |
| 96 | description |
| 97 | "OpenConfig public release"; |
| 98 | reference "2.1.0"; |
| 99 | } |
| 100 | |
| 101 | revision "2016-03-31" { |
| 102 | description |
| 103 | "OpenConfig public release"; |
| 104 | reference "2.0.1"; |
| 105 | } |
| 106 | |
| 107 | grouping bgp-top { |
| 108 | description |
| 109 | "Top-level grouping for the BGP model data"; |
| 110 | |
| 111 | container bgp { |
| 112 | description |
| 113 | "Top-level configuration and state for the BGP router"; |
| 114 | |
| 115 | container global { |
| 116 | description |
| 117 | "Global configuration for the BGP router"; |
| 118 | uses bgp-global-base; |
| 119 | } |
| 120 | |
| 121 | container neighbors { |
| 122 | description |
| 123 | "Configuration for BGP neighbors"; |
| 124 | uses bgp-neighbor-list; |
| 125 | } |
| 126 | |
| 127 | container peer-groups { |
| 128 | description |
| 129 | "Configuration for BGP peer-groups"; |
| 130 | uses bgp-peer-group-list; |
| 131 | } |
| 132 | } |
| 133 | } |
| 134 | |
| 135 | uses bgp-top; |
| 136 | |
| 137 | } |