utilities.tools

This MC will enable users to install various tools within their VM including tcpdump, Wireshark, some source code build tools, and Docker.

Available Objects

This module contains all necessary Model Component Objects for utilities.tools.

class utilities.tools.Utilities[source]

Bases: object

An object which provides various utility functions for VMs.

__annotate_func__ = None
__annotations_cache__ = {}
__firstlineno__ = 4
__static_attributes__ = ()
add_docker()[source]

Install Docker on a VM. Currently, only Ubuntu 22.04 is supported.

add_tcpdump()[source]

Install libpcap and tcpdump on a VM.

add_wireshark()[source]

Install Wireshark on a VM. Currently, only Ubuntu 22.04 is supported.

get_and_validate_vm_os(supported_oses=None)[source]

Get the operating system from a VM and check to see if an approved operating system is used.

Parameters:

supported_oses (set) – A set of supported operating systems.

Returns:

The matched operating system.

Return type:

str

Raises:

NotImplementedError – If the VM has an unsupported OS.

install_build_tools()[source]

Install several utilities to make building packages easier on Linux. This includes make, cmake, flex, gcc, python3-dev, curl, and bison. Currently, only Ubuntu 22.04 is supported.