Method: Cisco::RouteMap#set_dampening_get
- Defined in:
- lib/cisco_node_utils/route_map.rb
#set_dampening_get ⇒ Object
set dampening 6 22 44 55
1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 |
# File 'lib/cisco_node_utils/route_map.rb', line 1648 def set_dampening_get hash = {} hash[:half_life] = false hash[:reuse] = false hash[:suppress] = false hash[:max] = false str = config_get('route_map', 'set_dampening', @get_args) return hash if str.nil? arr = str.split hash[:half_life] = arr[0].to_i hash[:reuse] = arr[1].to_i hash[:suppress] = arr[2].to_i hash[:max] = arr[3].to_i hash end |