def get_sync_data_ext(self, context, router_ids=None, active=None):
<EOL>router_ids = self._get_relevant_router_ids(context, router_ids)<EOL>sync_data = super(L3RouterApplianceDBMixin,<EOL>self).get_sync_data(context, router_ids, active)<EOL>for router in sync_data:<EOL><INDENT>self.add_type_and_hosting_device_info(context, router)<EOL>if extensions.is_extension_supported(self, ha.HA_ALIAS):<EOL><INDENT>self._populate_ha_information(context, router)<EOL><DEDENT>plg_drv = self._dev_mgr.get_hosting_device_plugging_driver(<EOL>context,<EOL>(router.get('<STR_LIT>') or {}).get('<STR_LIT>'))<EOL>if plg_drv and router['<STR_LIT>']:<EOL><INDENT>self._add_hosting_port_info(context, router, plg_drv)<EOL><DEDENT><DEDENT>return sync_data<EOL>
Query routers and their related floating_ips, interfaces.

        Adds information about hosting device as well as trunking.