def METHOD_NAME(self, ip_int):
    """Setter for ip address.
    Args:
        ip_int: the ipv4 address in int format
    """
    self.ip = socket.inet_ntoa(struct.pack('!I', ip_int))
    self.ip_bytes = socket.inet_aton(self.ip)