1. 程式人生 > >關於HAproxy文件的查,新插入、刪除的操作

關於HAproxy文件的查,新插入、刪除的操作

關於haproxy文件的查 新插入、刪除的操作

os



()backend []
    server []
    select []
    count (,) obj1line obj1line.strip().startswith()backend.append(line.strip())
            line.strip().startswith()server.append(line.strip())

        i backendselect.append(i.split())
            select[count][] count countserver[count]

()backend [] record [][] [][]              [][] new2 backend record
    a []
    i (, ) obj1_rline obj1_ra.append(line)
            str line.split()
            stri a.index(line)
        a.insert(i , new2)

    (, ) obj1_wj aobj1_w.write(j)
    os.rename(, )
    os.rename(, )
    os.remove()
    ()backend [] record [][] [][]              [][] backend_list backend.split()
    record_list record.split()

    backend_list
    record_list
    a []
    (, ) obj1_rline obj1_rline
            a.append(line)
            str line.split()
            str backend_lista.remove(line)
            str record_lista.remove(line)

    (, ) obj1_wj aobj1_w.write(j)

    os.rename(, )
    os.rename(, )
    os.remove()
    __name__ select_num ()

    select_num address ()
        find_list find(address)
        find_list
    select_num data_str (())
        new_insert_list new_insert(data_str)
        new_insert_list data_str (())
        del_backend_list del_backend(data_str)
        del_backend_list


關於HAproxy文件的查,新插入、刪除的操作