Refactored update_ip_address; also, added tests surrounding no and empty port_ids