Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for string in acl_list:
- rows_fw.append((string[0], string[1], string[2], string[3], string[4], string[5], string[6], string[7],';'.join(string[8]),
- string[0], string[2], string[3], string[4], string[5], string[6], string[7],';'.join(string[8])))
- cux.executemany("""INSERT INTO acl_table_v2
- (firewall,sequence,source_ip,source_port,destination_ip,destination_port,protocol,action,appendix)
- VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s)
- ON DUPLICATE KEY UPDATE firewall=%s, source_ip=%s, source_port=%s, destination_ip=%s, destination_port=%s, protocol=%s, action=%s, appendix=%s""", rows_fw)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement