code: def port_create(request, network_id, **kwargs):
      
      LOG.debug("port_create(): netid=%(network_id)s, kwargs=%(kwargs)s",
                {'network_id': network_id, 'kwargs': kwargs})
      kwargs = unescape_port_kwargs(**kwargs)
      body = {'port': {'network_id': network_id}}
      if 'tenant_id' not in kwargs:
          kwargs['tenant_id'] = request.user.project_id
      body['port'].update(kwargs)
      port = neutronclient(request).create_port(body=body).get('port')
      return Port(port)
docs: Create a port on a specified network.
  
      :param request: request context
      :param network_id: network id a subnet is created on
      :param device_id: (optional) device id attached to the port
      :param tenant_id: (optional) tenant id of the port created
      :param name: (optional) name of the port created
      :returns: Port object