2.3. NGINX

2.3.1. NGINXTools suite

This module implements initialization and cleanup of NGINX framework.

class resources.libraries.python.NGINX.NGINXTools.NGINXTools

Bases: object

This class implements: - Initialization of NGINX environment, - Cleanup of NGINX environment.

static cleanup_nginx_framework(node, nginx_ins_path)

Cleanup the NGINX framework on the DUT node.

Parameters
  • node (dict) – Will cleanup the nginx on this nodes.

  • nginx_ins_path (str) – NGINX install path.

Raises

RuntimeError – If it fails to cleanup the nginx.

static cleanup_nginx_framework_on_all_duts(nodes, nginx_ins_path)

Cleanup the NGINX framework on all DUT nodes.

Parameters
  • nodes (dict) – Will cleanup the nginx on this nodes.

  • nginx_ins_path (str) – NGINX install path.

Raises

RuntimeError – If it fails to cleanup the nginx.

static install_nginx_framework_on_all_duts(nodes, pkg_dir, nginx_version=None)

Prepare the NGINX framework on all DUTs.

Parameters
  • nodes (dict) – Nodes from topology file.

  • pkg_dir (str) – Path to directory where packages are stored.

  • nginx_version (str) – NGINX version.

static install_original_nginx_framework(node, pkg_dir, nginx_version)

Prepare the NGINX framework on the DUT node.

Parameters
  • node (dict) – Node from topology file.

  • pkg_dir (str) – Ldp NGINX install dir.

  • nginx_version (str) – NGINX Version.

Raises

RuntimeError – If command returns nonzero return code.

static install_vsap_nginx_on_dut(node, pkg_dir)

Prepare the VSAP NGINX framework on all DUT

Parameters
  • node (dict) – Node from topology file.

  • pkg_dir (str) – Path to directory where packages are stored.

Raises

RuntimeError – If command returns nonzero return code.