def ha_interface_ip_address_needed(self, context, router, port,<EOL>ha_settings_db, ha_group_uuid):
import neutron_lib.constants as l3_constants<EOL>if port['<STR_LIT>'] == l3_constants.DEVICE_OWNER_ROUTER_GW:<EOL><INDENT>return False<EOL><DEDENT>else:<EOL><INDENT>return True<EOL><DEDENT>return True<EOL>
Determines if a router interface for an HA enabled router needs
        an extra IP address (in addition to the VIP address)

        :param context: the neutron context of the request
        :param router: dictionary of HA router
        :param port: dictionary of port associated with the HA group
        :param ha_settings_db: db object with ha settings
        :param ha_group_uuid: uuid of HA group's DB entry

        :returns - True if an extra IP address is needed, False otherwise.