def _add_hosting_port_info(self, context, router, plugging_driver):
<EOL>if router['<STR_LIT>'] is not None:<EOL><INDENT>if not self._populate_hosting_info_for_port(<EOL>context, router['<STR_LIT:id>'], router['<STR_LIT>'],<EOL>router['<STR_LIT>'], plugging_driver):<EOL><INDENT>router['<STR_LIT:status>'] = cisco_constants.ROUTER_INFO_INCOMPLETE<EOL>return<EOL><DEDENT><DEDENT>for itfc in router.get(bc.constants.INTERFACE_KEY, []):<EOL><INDENT>if not self._populate_hosting_info_for_port(<EOL>context, router['<STR_LIT:id>'], itfc, router['<STR_LIT>'],<EOL>plugging_driver):<EOL><INDENT>router['<STR_LIT:status>'] = cisco_constants.ROUTER_INFO_INCOMPLETE<EOL>return<EOL><DEDENT><DEDENT>
Adds hosting port information to router ports.

        We only populate hosting port info, i.e., reach here, if the
        router has been scheduled to a hosting device. Hence this
        a good place to allocate hosting ports to the router ports.