def method_missing(*args)
      name = args[0].to_s
      if args.length == 1 # Getter
        if name =~ /^default_(.*)$/
          config_get_default('bgp_af', Regexp.last_match(1))
        else
          config_get('bgp_af', name, @get_args)
        end
      elsif args.length == 2 && name =~ /^(.*)=$/ # Setter
        set_args_keys(state: args[1] ? '' : 'no')
        config_set('bgp_af', Regexp.last_match(1), @set_args)
      else
        super
      end
    end
def method_missing(*args)
      name = args[0].to_s
      if args.length == 1 # Getter
        if name =~ /^default_(.*)$/
          config_get_default('bgp_af', Regexp.last_match(1))
        else
          config_get('bgp_af', name, @get_args)
        end
      elsif args.length == 2 && name =~ /^(.*)=$/ # Setter
        set_args_keys(state: args[1] ? '' : 'no')
        config_set('bgp_af', Regexp.last_match(1), @set_args)
      else
        super
      end
    end
Universal Getter, Default Getter, and Setter