code: def allocate_fw_dev(self, fw_id):
          
          for cnt in self.res:
              used = self.res.get(cnt).get('used')
              if used < self.res.get(cnt).get('quota'):
                  self.res[cnt]['used'] = used + 1
                  self.res[cnt]['fw_id_lst'].append(fw_id)
                  return self.res[cnt].get('obj_dict'), (
                      self.res[cnt].get('mgmt_ip'))
          return None, None
docs: Allocate firewall device.
  
          Allocate the first Firewall device which has resources available.