def lb_get
      str = config_get('itd_service', 'load_balance', @get_args)
      return nil if str.nil?
      if str.include?('method') && str.include?('range')
        regexp = Regexp.new('load-balance *(?<bundle_select>method \S+)?'\
                 ' *(?<bundle_hash>\S+)?'\
                 ' *(?<proto>\S+)?'\
                 ' *(?<start_port>range \d+)?'\
                 ' *(?<end_port>\d+)?'\
                 ' *(?<buckets>buckets \d+)?'\
                 ' *(?<mask>mask-position \d+)?')
      elsif str.include?('method')
        regexp = Regexp.new('load-balance *(?<bundle_select>method \S+)?'\
                 ' *(?<bundle_hash>\S+)?'\
                 ' *(?<buckets>buckets \d+)?'\
                 ' *(?<mask>mask-position \d+)?') unless str.include?('range')
      else
        regexp = Regexp.new('load-balance *(?<buckets>buckets \d+)?'\
                 ' *(?<mask>mask-position \d+)?')
      end
      regexp.match(str)
    end
def lb_get
      str = config_get('itd_service', 'load_balance', @get_args)
      return nil if str.nil?
      if str.include?('method') && str.include?('range')
        regexp = Regexp.new('load-balance *(?<bundle_select>method \S+)?'\
                 ' *(?<bundle_hash>\S+)?'\
                 ' *(?<proto>\S+)?'\
                 ' *(?<start_port>range \d+)?'\
                 ' *(?<end_port>\d+)?'\
                 ' *(?<buckets>buckets \d+)?'\
                 ' *(?<mask>mask-position \d+)?')
      elsif str.include?('method')
        regexp = Regexp.new('load-balance *(?<bundle_select>method \S+)?'\
                 ' *(?<bundle_hash>\S+)?'\
                 ' *(?<buckets>buckets \d+)?'\
                 ' *(?<mask>mask-position \d+)?') unless str.include?('range')
      else
        regexp = Regexp.new('load-balance *(?<buckets>buckets \d+)?'\
                 ' *(?<mask>mask-position \d+)?')
      end
      regexp.match(str)
    end
the load-balance command can take several forms like:
 load-balance method dst ip
 load-balance method dst ip-l4port tcp range 3 6
 load-balance method dst ip-l4port tcp range 3 6 buckets 8 mask-position 2
 load-balance buckets 8
 load-balance mask-position 2