Change the name of ip4 and prefix4 into endpoint_ip and endpoint_prefix