code: def create_port(name,
                  network,
                  device_id=None,
                  admin_state_up=True,
                  profile=None):
      '''
      Creates a new port
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' neutron.create_port network-name port-name
  
      :param name: Name of port to create
      :param network: Network name or ID
      :param device_id: ID of device (Optional)
      :param admin_state_up: Set admin state up to true or false,
              default: true (Optional)
      :param profile: Profile to build on (Optional)
      :return: Created port information
      '''
      conn = _auth(profile)
      return conn.create_port(name, network, device_id, admin_state_upf create_port(name,
                  network,
                  device_id=None,
                  admin_state_up=True,
                  profile=None):
      '''
      Creates a new port
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' neutron.create_port network-name port-name
  
      :param name: Name of port to create
      :param network: Network name or ID
      :param device_id: ID of device (Optional)
      :param admin_state_up: Set admin state up to true or false,
              default: true (Optional)
      :param profile: Profile to build on (Optional)
      :return: Created port information
      '''
      conn = _auth(profile)
      return conn.create_port(name, network, device_id, admin_state_up)
docs: Creates a new port
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' neutron.create_port network-name port-name
  
      :param name: Name of port to create
      :param network: Network name or ID
      :param device_id: ID of device (Optional)
      :param admin_state_up: Set admin state up to true or false,
              default: true (Optional)
      :param profile: Profile to build on (Optional)
      :return: Created port information