Configuration File Description

You can modify the routesConfig.json configuration file to control the dynamic display of management and configuration function modules on the edge management system web page. For example, you can hide the alarm module so it will not be displayed on the web page.

Configuration File

The configuration file path is {project_dir}/src/app/set_customized_web_nav. The code directory structure is as follows:
{project_dir}/src/app/set_customized_web_nav
├──build_customized_web_nav.sh                # Configuration script
└──routes_config_checker.py                   # Code for verifying configuration file
├──routesConfig.json                          # Configuration file
The content format of the routesConfig.json file is as follows. The parameters in the file are fixed and cannot be deleted or added by users. Otherwise, the dynamic component loading may fail. Table 1 describes the parameters in the command.
{
    "manager": {
        "network": true,
        "time": true,
        "registration": true,
        "disk": true,
        "alarm": true,
        "journal": true,
        "update": true,
        "reload": true,
        "information": true,
        "extendModule": true
    },
    "setting": {
        "safety": true
    }
}
Table 1 Parameter description

Parameter

Description

manager.network

Meaning: whether to show the Network Configuration tab on the navigation bar of the web page

Type: bool

Value:

  • true: shows the module.
  • false: hides the module.

manager.time

Meaning: whether to show the Time Configuration tab on the navigation bar of the web page

Type: bool

Value:

  • true: shows the module.
  • false: hides the module.

manager.registration

Meaning: whether to show the NMS registration tab on the navigation bar of the web page

Type: bool

Value:

  • true: shows the module.
  • false: hides the module.

manager.disk

Meaning: whether to show the storage configuration tab on the navigation bar of the web page

Type: bool

Value:

  • true: shows the module.
  • false: hides the module.

manager.alarm

Meaning: whether to show the alarm information tab on the navigation bar of the web page

Type: bool

Value:

  • true: shows the module.
  • false: hides the module.

manager.journal

Meaning: whether to show the log collection tab on the navigation bar of the web page

Type: bool

Value:

  • true: shows the module.
  • false: hides the module.

manager.update

Meaning: whether to show the firmware upgrade tab on the navigation bar of the web page

Type: bool

Value:

  • true: shows the module.
  • false: hides the module.

manager.reload

Meaning: whether to show the reset control tab page on the navigation bar of the web page

Type: bool

Value:

  • true: shows the module.
  • false: hides the module.

manager.information

Meaning: whether to show the system information tab on the navigation bar of the web page

Type: bool

Value:

  • true: shows the module.
  • false: hides the module.

manager.extendModule

Meaning: whether to show the extension module tab on the navigation bar of the web page

Type: bool

Value:

  • true: shows the module.
  • false: hides the module.

setting.safety

Meaning: whether to show the Security Policy tab on the navigation bar of the web page

Type: bool

Value:

  • true: shows the module.
  • false: hides the module.
    NOTE:

    You can dynamically choose whether to show the security policy. If the security policy shows, all functions related to the security policy show. If the security policy hides, all functions related to the security policy hide.