def add_dns_server(ns, setting, address):
    # Check the IP address
    address, version = util.address_check(address)

    protocolIFType = ns.LMI_IPAssignmentSettingData.ProtocolIFTypeValues.value("IPv%d" % version)
    for settingData in setting.associators(AssocClass="LMI_OrderedIPAssignmentComponent"):
        if (settingData.classname == "LMI_DNSSettingData" and settingData.ProtocolIFType == protocolIFType):
            settingData.DNSServerAddresses = settingData.DNSServerAddresses + [address]
            settingData.push()
            break
    else:
        raise LmiInvalidOptions("Can't assign DNS address to setting %s, invalid setting type" % setting.Caption)
    LOG().info("DNS server %s added to setting %s", address, setting.Caption)
    return 0
Import Users from CSV
dataset/ETHPy150Open openlmi/openlmi-scripts/commands/networking/lmi/scripts/networking/__init__.py/add_dns_server--crossover with--dataset/ETHPy150Open sahana/eden/modules/s3/s3import.py/S3BulkImporter.import_user