@abc.abstractmethod<EOL><INDENT>def allocate_hosting_port(self, context, router_id, port_db, network_type,<EOL>hosting_device_id):<DEDENT>
pass<EOL>
Allocates a hosting port for a logical port.

        Schedules a logical port to a hosting port. Note that the hosting port
        may be the logical port itself.

        :returns: a dict `{'allocated_port_id': <id of allocated port>,
                  'allocated_vlan': <allocated VLAN or None>}` or
                  None if allocation failed

        :param context: Neutron api request context.
        :param router_id: id of Neutron router the logical port belongs to.
        :param port_db: Neutron logical router port.
        :param network_type: Type of network for logical router port
        :param hosting_device_id: id of hosting device