< Home

Data Model

The configuration model file matching file management using SFTP is huawei-system-load.yang.

Table 1 File management using SFTP

Object

Description

Value

Remarks

load-file/loadfile/files/name

Indicates the name of the file to be downloaded or uploaded.

The value is a string of 1 to 64 characters.

NA

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

Indicates the type of the file to be downloaded or uploaded.

The value is an enumerated string:

  • 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.

NA

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

Indicates the size of a downloaded file.

The value is an integer, in bytes.

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

load-file/loadfile/files/direction

Indicates whether to download or upload a file.

The value is an enumerated string:
  • download: file download
  • upload: file upload

NA

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-load-peers/file-location/fileserver-address

Indicates the file server IP address.

The value is a string of 1 to 64 characters.

NA

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

Indicates the path on the file server.

The value is a string of 1 to 128 characters.

NA

load-file/loadfile/files/sftp/username

Indicates the user name for logging in to the file server.

The value is a character string.

NA

load-file/loadfile/files/sftp/password

Indicates the user name for logging in to the file server.

The value is a character string.

NA

load-file/loadfile/files/sftp/port

Indicates the port number for logging in to the file server.

The value is an integer in the range from 0 to 65535.

NA

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

Indicates whether to delete the old system software package. If the space is insufficient, logs are deleted.

The value is of the Boolean type:
  • true: This function is enabled.
  • false: This function is disabled.

NA

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

Indicates whether to delete log files.

The value is of the Boolean type:
  • true: This function is enabled.
  • false: This function is disabled.

NA

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

Indicates the name of an executable file.

The value is a string of 5 to 48 characters.

NA

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

Indicates the type of an executable file.

The value is an enumerated string:

  • initial-cfg: configuration file

NA

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

Indicates whether to execute a file.

The value is of the Boolean type:
  • true: This function is enabled.
  • false: This function is disabled.

NA

/huawei-system-load:download-guage

Indicates the device loading status.

NA

The information includes the download status, download progress, and error flag of the download failures.

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

Indicates the operation to be performed on the file that is being downloaded.

The value is an enumerated string:

  • pause: File download will be paused.
  • resume: File download will resume.
  • cancel: File download will be cancelled.

NA

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