我要评分
获取效率
正确性
完整性
易理解

Modifying Configuration Items

The haf-tool provides the config command to modify the configuration items of host nodes and offload nodes. The parameters in the command are described as follows.

Table 1 haf-tool config parameters

Option

Description

-h, --help

Outputs the haf-tool config help information.

-l, --list

Lists the configuration items and their values of haf-tool config on the current node.

--set <key> <value>

Changes the value of <key> to <value>. For details about keys that can be configured, see the output of --list. For details about the configuration items, see Table 2.

Table 2 haf-tool config configuration items

Node

Option

Description

Host node

host_tls_switch

For details, see Table 1 and Configuration File Description.

communication_port

Offload node with the HAF service

Offload node with the HAF library

target_tls_switch

ip_white_list_switch

listen_ip

communication_port

ip_white_list

IP address trustlist. The value can be an IP address or IP address segment. Use commas (,) to separate multiple values. Example: 127.0.0.1,10.10.0.2,10.10.10.0/24

NOTE:

The trustlist is encrypted. Therefore, --list does not display the value of ip_white_list.

After the configuration items are modified, perform the following operations for the modification to take effect:

  • Restart upper-layer applications on host nodes and on the offload nodes with the HAF library.
  • Run the /home/omm/haf-install/haf-target/tools/haf-tool restart command to restart the HAF service on the offload node.