Method: Rbeapi::Api::Prefixlists#getall
- Defined in:
- lib/rbeapi/api/prefixlists.rb
#getall ⇒ Hash<String, Array>
Returns all prefix lists configured on the node.
128 129 130 131 132 133 134 |
# File 'lib/rbeapi/api/prefixlists.rb', line 128 def getall lists = config.scan(/(?<=^ip\sprefix-list\s)[^\s]+(?=\sseq.+)?/) lists.uniq.each_with_object({}) do |name, hsh| values = get name hsh[name] = values if values end end |