code: def create_platform(platform):
      '''
      .. versionadded:: 2019.2.0
  
      Create a new device platform
  
      platform
          String of device platform, e.g., ``junos``
  
      CLI Example:
  
      .. code-block:: bash
  
          salt myminion netbox.create_platform junos
      '''
      nb_platform = get_('dcim', 'platforms', slug=slugify(platform))
      if nb_platform:
          return False
      else:
          payload = {'name': platform, 'slug': slugify(platform)}
          plat = _add('dcim', 'platforms', payload)
          if plat:
              return {'dcim': {'platforms': payload}}
          else:
              return Falsf create_platform(platform):
      '''
      .. versionadded:: 2019.2.0
  
      Create a new device platform
  
      platform
          String of device platform, e.g., ``junos``
  
      CLI Example:
  
      .. code-block:: bash
  
          salt myminion netbox.create_platform junos
      '''
      nb_platform = get_('dcim', 'platforms', slug=slugify(platform))
      if nb_platform:
          return False
      else:
          payload = {'name': platform, 'slug': slugify(platform)}
          plat = _add('dcim', 'platforms', payload)
          if plat:
              return {'dcim': {'platforms': payload}}
          else:
              return False
docs: .. versionadded:: 2019.2.0
  
      Create a new device platform
  
      platform
          String of device platform, e.g., ``junos``
  
      CLI Example:
  
      .. code-block:: bash
  
          salt myminion netbox.create_platform junos