def METHOD_NAME():
    global port_dict
    if port_dict is not None:
        return
    port_dict = {}
    idx = 0
    file = open(HWSKU_PATH + "/port_config.ini", "r")
    line = file.readline()
    while line is not None and len(line) > 0:
        line = line.strip()
        if line.startswith("#"):
            line = file.readline()
            continue
        list = line.split()
        if len(list) >= 4:
            idx = int(list[3])
        port_dict[list[0]] = { "index": str(idx) }
        idx += 1
        line = file.readline()
    return port_dict