def assign_ip_to_nic()

in code/assign-ip-new-ip6-parallel.py [0:0]


def assign_ip_to_nic(ipList,network_interface_id,client):  
    tprint("Going to reassign iplist: " + str(ipList) + " to ENI:" +network_interface_id )    

    response = client.assign_private_ip_addresses(
        AllowReassignment=True,
        NetworkInterfaceId=network_interface_id,
        PrivateIpAddresses = ipList    
        )