Method: Cisco::RouterBgpAF#dampening
- Defined in:
- lib/cisco_node_utils/bgp_af.rb
#dampening ⇒ Object
The data presented to or retrieved from the config_set and config_get for dampening is one of 4 possibilities:
Value Meaning —– ——- nil Dampening is not configured
-
Dampening is configured with no options
- 1,3,4,5,nil
-
Dampening + decay, reuse, suppress, suppress_max
- nil,nil,nil,nil,‘route-map’
-
Dampening + routemap
200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 |
# File 'lib/cisco_node_utils/bgp_af.rb', line 200 def dampening data = config_get('bgp_af', 'dampening', @get_args) return nil if data.nil? # no dampening data = data.flatten # dampening nil nil nil nil nil val = [] if !data[4].nil? # dampening nil nil nil nil route-map val = data[4] elsif !data[3].nil? && data[4].nil? # dampening 1 2 3 4 nil val = data[0..3] end val end |