added the get_ip_for_interfaces(interface_list=[], ip_type=AF_INET) function