code: def create_from_template(zone, template):
      '''
      Create an in-memory configuration from a template for the specified zone.
  
      zone : string
          name of zone
      template : string
          name of template
  
      .. warning::
          existing config will be overwritten!
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' zonecfg.create_from_template leo tallgeese
      '''
      ret = {'status': True}
  
      # create from template
      _dump_cfg(template)
      res = __salt__['cmd.run_all']('zonecfg -z {zone} create -t {tmpl} -F'.format(
          zone=zone,
          tmpl=template,
      ))
      ret['status'] = res['retcode'] == 0
      ret['message'] = res['stdout'] if ret['status'] else res['stderr']
      if ret['message'] == '':
          del ret['message']
      else:
          ret['message'] = _clean_message(ret['message'])
  
      return ref create_from_template(zone, template):
      '''
      Create an in-memory configuration from a template for the specified zone.
  
      zone : string
          name of zone
      template : string
          name of template
  
      .. warning::
          existing config will be overwritten!
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' zonecfg.create_from_template leo tallgeese
      '''
      ret = {'status': True}
  
      # create from template
      _dump_cfg(template)
      res = __salt__['cmd.run_all']('zonecfg -z {zone} create -t {tmpl} -F'.format(
          zone=zone,
          tmpl=template,
      ))
      ret['status'] = res['retcode'] == 0
      ret['message'] = res['stdout'] if ret['status'] else res['stderr']
      if ret['message'] == '':
          del ret['message']
      else:
          ret['message'] = _clean_message(ret['message'])
  
      return ret
docs: Create an in-memory configuration from a template for the specified zone.
  
      zone : string
          name of zone
      template : string
          name of template
  
      .. warning::
          existing config will be overwritten!
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' zonecfg.create_from_template leo tallgeese