code: def set_parent(self, parent):
          
          self.parent = parent
  
          if self.config_type == 'edit':
              self.rel_path_fwd = 'edit %s\n' % self.get_name()
              self.rel_path_bwd = 'next\n'
          elif self.config_type == 'config':
              self.rel_path_fwd = 'config %s\n' % self.get_name()
              self.rel_path_bwd = 'end\n'
  
          self.full_path_fwd = '%s%s' % (self.get_parent().full_path_fwd, self.rel_path_fwd)
          self.full_path_bwd = '%s%s' % (self.rel_path_bwd, self.get_parent().full_path_bwd)
docs: Args:
              - **parent** ((:class:`~pyFG.forticonfig.FortiConfig`): FortiConfig object you want to set as parent.