Skip to main content

Automated testing of network devices.

Project description

Boardfarm


GitHub GitHub commit activity (branch) GitHub last commit (branch) Python Version Code style: black Code style: black


Boardfarm is an open-source IT automation framework purely written in Python (3.11+).

Its primary focus revolves around systems configuration, infrastructure deployment, and orchestration of advanced IT tasks such as Subscriber Provisioning, Line Termination System bootups (LTS) or a CPE firmware flash via bootloader.

It empowers its users with the ability to automate and comprehensively test their devices across a wide range of target environments.

Motivation

Boardfarm was initially developed at Qualcomm to automate testing of OpenWrt routers and other embedded devices.

Over time, the framework evolved to support RDK-B derived boards and IoT devices, along with the essential OSS and back-office components necessary for simulating a Telecom Service Providers' environment.

The operation of a device or the configuration of a server can vary depending on the specific hardware variant or the infrastructure layout of the deploying Telecom Operator.

To address this variability, Boardfarm utilizes Pluggy to introduce a hook structure that enables its users to register customized code through plugins for each individual infrastructure component.

This structure also enforces a uniform API specification, allowing plugins to invoke their implementation at any of the predefined checkpoints within the Boardfarm's execution cycle, offering flexibility and extensibility.

Features

  • Modular Hook definitions enabling users to independently initiate the bootup/deployment process for each component within the infrastructure, offering granular control and flexibility.
  • Seamless integration with Pytest. Provides easy access to devices along with their pre-set operations through protocol-specific libraries.
  • A versatile connection manager that abstracts physical device connections, offering a unified set of APIs for RS232, SSH, Telnet, SNMP, and HTTP(s) communication with the infrastructure.
  • A library of device templates (Python ABCs) that can be inherited and customized for implementing hardware interactions without application or server specific constraints.
  • A plugin architecture that enables vendors and OEMs to perform testing and provisioning on their firmware builds/devices, whether in a predefined production or fully simulated test environment.
  • Integration with Docker/QEMU to simulate various test environments and devices.

Installation

Run the following command to directly install the package from the repo:

pip install git+https://github.com/lgirdk/boardfarm.git@boardfarm3

Run the following command to install from PyPI:

pip install boardfarm3

Plugin

If you also want to install Boardfarm’s plugins for DOCSIS (boardfarm3-docsis) and Pytest (pytest-boardfarm3), you can install them together using extras:

pip install "boardfarm3[docsis, pytest]"

Usage

boardfarm -h

This will display help for the framework. Here are all the switches it supports.

usage: boardfarm [-h] --board-name BOARD_NAME --env-config ENV_CONFIG --inventory-config INVENTORY_CONFIG [--legacy] [--skip-boot] [--skip-contingency-checks] [--save-console-logs]

options:
  -h, --help            show this help message and exit
  --board-name BOARD_NAME
                        Board name
  --env-config ENV_CONFIG
                        Environment JSON config file path
  --inventory-config INVENTORY_CONFIG
                        Inventory JSON config file path
  --legacy              allows for devices.<device> obj to be exposed (only for legacy use)
  --skip-boot           Skips the booting process, all devices will be used as they are
  --skip-contingency-checks
                        Skip contingency checks while running tests
  --save-console-logs   Save console logs to the disk

Documentation

For full documentation, including installation, tutorials and architecture overview and how to run a prplOS demo with a CPE, ACS, lan, wan devices, please see the following.

Boardfarm Read the Docs

Changelog

Consult the CHANGELOG page for fixes and enhancements of each version.

License

Distributed under the terms of the Clear BSD License, Boardfarm is free and open source software.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

boardfarm3-1.0.0.tar.gz (25.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

boardfarm3-1.0.0-py3-none-any.whl (540.7 kB view details)

Uploaded Python 3

File details

Details for the file boardfarm3-1.0.0.tar.gz.

File metadata

  • Download URL: boardfarm3-1.0.0.tar.gz
  • Upload date:
  • Size: 25.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for boardfarm3-1.0.0.tar.gz
Algorithm Hash digest
SHA256 00945640acdb10552297e42a1a3c28c83b78065ed59f3accafec062cd340eb93
MD5 550d432440358aa960e6628ec8bd1334
BLAKE2b-256 322bd7bd2bb1311daea68102e9968b2837720168edd21b72c95193ee34adf8ea

See more details on using hashes here.

File details

Details for the file boardfarm3-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: boardfarm3-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 540.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for boardfarm3-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5f9ab5d206e0c47eef2c8db1c2a99ef5f5c0dfd63730e07a958dc12330742c27
MD5 1c4d400a3322505e871c231b6be52b40
BLAKE2b-256 88507a3fc3c04a5fb853dde700646e899e2d2809d2badf18dae91e4ec667b98d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page