< Home

Data Model

The data model file corresponding to the FTP management file is huawei-system-load.yang.

Table 1 Data model of FTP-based file management

Object

Description

Value

Remarks

load-file/loadfile/files/name

Indicates the name of the file to be downloaded.

The value is a string of 1 to 64 characters.

N/A

load-file/loadfile/files/file-parameters/type

Indicates the type of the file to be downloaded.

The value is of the enumerated type.

During file download, the value can be:
  • cc-packet: software package
  • Patch: patch file
  • license: license file
  • python-file: python file
  • initial-cfg: configuration file
  • cpu-utilization-diagnosis: records the CPU usage.
  • mem-utilization-diagnosis: records the memory usage.
  • reboot-diagnosis: records switch restart information.
  • commom-diagnosis-info: collects common system information.
  • device-diagnosis-info: collects device diagnostic information.
  • current-configuration: collects device running configuration.
  • sys-root-certification: root certificate.
  • capture-file: capture file.
  • device-certification: device certificate.

N/A

load-file/loadfile/files/file-parameters/size

Indicates the size of the file to be downloaded.

The value is an integer, in bytes.

The value needs to be set only before file download.

load-file/loadfile/files/direction

Indicates the file to be downloaded.

The value is of the enumerated type:
  • download: file download

FTP can only be used to download files.

load-file/loadfile/files/file-parameters/checksum/digest-algorithm

Indicates the file authentication mode used by the controller.

The value is an enumerated string:

  • sha256: HMAC-SHA256 encryption algorithm

This parameter is mandatory only when a file needs to be downloaded.

load-file/loadfile/files/file-parameters/checksum/digest

Indicates the verification value of the target file.

The value is a string of 1 to 64 characters.

This parameter is mandatory only when a file needs to be downloaded.

load-file/loadfile/files/file-parameters/file-load-peers/file-location/fileserver-address

Indicates the IP address of the file server.

The value is a string of 1 to 64 characters.

N/A

load-file/loadfile/files/file-parameters/file-load-peers/file-location/file-directory

Indicates the directory on the file server.

The value is a string of 1 to 128 characters.

N/A

load-file/loadfile/files/ftp/username

Indicates the user name used to log in to the file server.

The value is a character string.

The value must contain no less than 6 characters.

load-file/loadfile/files/ftp/password

Indicates the password used to log in to the file server.

The value is a character string.

The value must contain no less than 6 characters.

load-file/loadfile/files/ftp/port

Indicates the port number of the file server.

The value is an integer that ranges from 0 to 65535.

The port number of the FTP server is 21.

load-file/loadfile/files/pre-load-actions/remove-old-cc

Indicates the old system software package and patch to be deleted. When the space is insufficient, the log is deleted.

Boolean type:
  • true: Enable this function
  • false: Disable this function

NA

load-file/loadfile/files/pre-load-actions/remove-old-log

Indicates the log to be deleted.

Boolean type:
  • true: Enable this function
  • false: Disable this function

NA

post-load-action/actions-to-file/name

Indicates the name of an execution file.

The value is a string of 5to 48 characters.

NA

post-load-action/actions-to-file/type

Indicates the type of the file to be executed.

The value is a character string.

  • initial-cfg: Configuration file

NA

post-load-action/actions-to-file/actions/enable

Execute the file.

Boolean type:
  • true: Enable this function
  • false: Disable this function

NA

/huawei-system-load:download-guage

Indicates the status of the device loading process.

NA

Including the download status, download progress, error flag, and so on.

control-loading-action/actions-to-file/actions/status

Indicates the operation of the device loading process.

The value is a character string:

  • pause
  • resume
  • cancel

NA

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >