def get_iqn_name(year, month, hostname, identifier=None):
    """Construct an iSCSI qualified name from components."""
    revdomain = ".".join(reversed(hostname.split(".")))
    name = u"iqn.%04d-%02d.%s" % (year, month, revdomain)
    if identifier:
        name += (u":" + unicode(identifier))
    return normalize_name(name)
dataset/ETHPy150Open kdart/pycopia/net/pycopia/iscsi/protocol.py/get_iqn_name/original