from parallels.ppa.actions.hosting_settings.convert.dns \
	import DNS as ActionHostingSettingsConvertPPADNS


class ExpandToPPADNS(ActionHostingSettingsConvertPPADNS):
	def _get_all_source_ips(self, global_context, subscription):
		"""Get all IPs of all source servers.

		:type global_context: parallels.plesk.source.expand.global_context.ExpandGlobalMigrationContext
		"""
		return (
			{global_context.conn.expand.conn_settings.ip} |
			global_context.expand_data.dns_server_ips |
			global_context.expand_data.plesk_server_ips |
			global_context.expand_data.mail_server_ips |
			global_context.expand_data.db_server_ips
		)