/** * Execute the job. * * @return void */ public function handle() { $upstreams = ASN::getUpstreams($this->input_asn, $asnMeta = false); if (count($upstreams['ipv4_upstreams']) > 0) { $this->processAsnGraph($this->input_asn, 'IPv4', $upstreams['ipv4_upstreams']); } if (count($upstreams['ipv6_upstreams']) > 0) { $this->processAsnGraph($this->input_asn, 'IPv6', $upstreams['ipv6_upstreams']); } $combined = array_merge($upstreams['ipv4_upstreams'], $upstreams['ipv6_upstreams']); if (count($combined) > 0) { $this->processAsnGraph($this->input_asn, 'Combined', $combined); } }
public function asnUpstreams($as_number) { $as_number = $this->ipUtils->normalizeInput($as_number); $upstreams = ASN::getUpstreams($as_number); return $this->sendData($upstreams); }