Setter method for ftp, mapped from YANG variable /brocade_firmware_rpc/firmware_download/input/ftp (container)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_ftp is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_ftp() directly.

def _set_ftp(self, v, load=False):
    """
    Setter method for ftp, mapped from YANG variable /brocade_firmware_rpc/firmware_download/input/ftp (container)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_ftp is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_ftp() directly.
    """
    if hasattr(v, "_utype"):
      v = v._utype(v)
    try:
      t = YANGDynClass(v,base=ftp.ftp, is_container='container', presence=False, yang_name="ftp", rest_name="ftp", parent=self, choice=(u'protocol-type', u'ftp-protocol'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, extensions=None, namespace='urn:brocade.com:mgmt:brocade-firmware', defining_module='brocade-firmware', yang_type='container', is_config=True)
    except (TypeError, ValueError):
      raise ValueError({
          'error-string': """ftp must be of a type compatible with container""",
          'defined-type': "container",
          'generated-type': """YANGDynClass(base=ftp.ftp, is_container='container', presence=False, yang_name="ftp", rest_name="ftp", parent=self, choice=(u'protocol-type', u'ftp-protocol'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, extensions=None, namespace='urn:brocade.com:mgmt:brocade-firmware', defining_module='brocade-firmware', yang_type='container', is_config=True)""",
        })

    self.__ftp = t
    if hasattr(self, '_set'):
      self._set()