def aa_set(attrs)
      # reset everything before setting as some older
      # software versions require it.
      destroy
      set_args_keys_default
      [:suppress_map,
       :advertise_map,
       :attribute_map,
      ].each do |p|
        attrs[p] = '' if attrs[p].nil? || attrs[p] == false
        send(p.to_s + '=', attrs[p])
      end
      [:summary_only,
       :as_set,
      ].each do |p|
        attrs[p] = false if attrs[p].nil?
        send(p.to_s + '=', attrs[p])
      end
      @set_args[:state] = ''
      config_set('bgp_af_aa', 'aggr_addr', @set_args)
    end
def aa_set(attrs)
      # reset everything before setting as some older
      # software versions require it.
      destroy
      set_args_keys_default
      [:suppress_map,
       :advertise_map,
       :attribute_map,
      ].each do |p|
        attrs[p] = '' if attrs[p].nil? || attrs[p] == false
        send(p.to_s + '=', attrs[p])
      end
      [:summary_only,
       :as_set,
      ].each do |p|
        attrs[p] = false if attrs[p].nil?
        send(p.to_s + '=', attrs[p])
      end
      @set_args[:state] = ''
      config_set('bgp_af_aa', 'aggr_addr', @set_args)
    end
The CLI can take many forms like:
 aggregate-address 1.1.1.1/32 as-set advertise-map adm
 aggregate-address 1.1.1.1/32 suppress-map sum attribute-map atm
 aggregate-address 1.1.1.1/32 summary-only
 aggregate-address 2.2.2.2/32 summary-only