'Parse the WMI packages output.'

def Parse(self, query, result, knowledge_base):

    _ = (query, knowledge_base)
    args = {'ifname': result['Description']}
    args['mac_address'] = binascii.unhexlify(result['MACAddress'].replace(':', ''))
    self._ConvertIPs([('IPAddress', 'addresses'), ('DefaultIPGateway', 'ip_gateway_list'), ('DHCPServer', 'dhcp_server_list')], result, args)
    if ('DHCPLeaseExpires' in result):
        args['dhcp_lease_expires'] = self.WMITimeStrToRDFDatetime(result['DHCPLeaseExpires'])
    if ('DHCPLeaseObtained' in result):
        args['dhcp_lease_obtained'] = self.WMITimeStrToRDFDatetime(result['DHCPLeaseObtained'])
    (yield rdf_client.Interface(**args))
    (yield rdf_client.DNSClientConfiguration(dns_server=result['DNSServerSearchOrder'], dns_suffix=result['DNSDomainSuffixSearchOrder']))
