$af_stats) { if ($af == "ipv6") // Only store IPv6 stuff for now. { rrdtool_update_ng($device, 'port-af-octets', [ 'InOctets' => $af_stats['ipIfStatsHCInOctets'], 'OutOctets' => $af_stats['ipIfStatsHCOutOctets'], ], ['index' => get_port_rrdindex($this_port), 'af' => $af]); // FIXME - come up with a real way to signal this stuff. set_entity_attrib('port', $this_port['port_id'], 'ipv6-octets', 1); } } } }