Variable Module

emulations.variable.init()

Initialize global variables.

This function initializes global variables used in the emulation environment to default None values.

Global Variables:

  • h1_pid (int): The PID of host h1.

  • node_path (str): The path to the Node.js executable.

  • npm_path (str): The path to the npm (Node Package Manager) executable.

  • server_pid (int): The PID of the Node.js server process.

  • bw_server_pid (int): The PID of the bandwidth control server process.

  • os_path (str): The PATH environment variable.

  • current_directory (str): The current working directory.

  • home_path (str): The path to the user's home directory.

  • volume_path (str): The name of the volume used in Docker containers.

  • username (str): The username of the current user.

  • public_port (int): The public port for exposing services.

  • skooner_token (str): The Skooner authentication token.

Returns: None

This module defines and initializes global variables used in the emulation environment.