11 lines
694 B
Python
11 lines
694 B
Python
|
|
|
|
# insert into ss2_migrated.ip_port_allocation ( ip_address, port, is_used, group_purchase_id, last_used_at, created_at, updated_at, max_connections, current_connections, type)
|
|
# values ( '103.6.221.91', 5663, 0, 0,now(), now(), now(), 1, 0, 'group_purchase')
|
|
if __name__ == '__main__':
|
|
line_count = 52
|
|
start_port = 5663
|
|
start_ip = '103.6.221.91'
|
|
print("insert into ss2_migrated.ip_port_allocation ( ip_address, port, is_used, group_purchase_id, last_used_at, created_at, updated_at, max_connections, current_connections, type) values ")
|
|
for i in range(0, line_count):
|
|
print(f" ( '{start_ip}', {start_port + i}, 0, 0,now(), now(), now(), 1, 0, 'group_purchase'),") |