Skip to main content

Fabfed Framework

Project description

Table of contents

Description

The FabFed is a Python library for a cross-testbed federation framework that (1) models the network experiment (or "slice") across the FABRIC testbed and federated testbeds and providers, and (2) provides workflow tools to stitch l2 and l3 networks between the testbeds and providers.

The FabFed code took the initial form from the Mobius API, and refactored and reinvented the slice modeling, user interface, data structure and stitching workflows.

The example below showcases network stitching across providers, a chi provider and a fabric provider. The configuration, while incomplete, highlights how fabfed-py expresses dependencies.

  1 resource:
  2
  3   - network:
  4       - chi_network:
  5             provider: '{{ chi.chi_provider }}'
  6             site: CHI@UC
  7
  8   - network:
  9       - fabric_network:
 10            provider: '{{ fabric.fabric_provider }}'
 11            site: 'STAR'
 12            stitch_with:
 13              - network: '{{ network.chi_network }}'

Installation

FabFed is available at PyPI.

pip install fabfed-py

Alternatively, you may install and test using the following commands:

pip install -e .
fabfed --help
fabfed stitch-policy --help
fabfed workflow --help
fabfed sessions --help

If using the CloudLab provider, the following portal-tools module is a required dependency:

pip install git+https://gitlab.flux.utah.edu/stoller/portal-tools.git

Operation Instructions

  • Fabfed worflow configuration is specified across one or more .fab files. Fabfed does not care how these files are named. Fabfed simply loads all the .fab configuration files, assembles them and parses the assembled configuration.
  • Fabfed will pickup any file ending with the .fab extension in the directory specified by the --config-dir. If this option is not present, the current directory is used.
  • The --var-file option can be used to override the default value of any variable. It consists of a set of key-value pairs with each pair written as key: value. At runtime, all variables found in an assembled configuration must have a value other than None. The parser will halt and throw an exeption otherwise.
  • The --session is a friendly name used to track a given workflow.
  • Use the --help options shown above if in doubt.
  • When stitching networks across provider use stitch-policy to discover available stitch information
# Example to view stitch policy from cloudlab to fabric
fabfed stitch-policy -providers "fabric,cloudlab"

# Validation
fabfed workflow --config-dir some_dir [--var-file some_var_file.yml] --session some_session -validate
fabfed workflow --config-dir some_dir [--var-file some_var_file.yml] --session some_session -stitch-info [-summary] [-json]

fabfed workflow --config-dir some_dir [--var-file some_var_file.yml] --session some_session -plan [-summary] [-json]

fabfed workflow --config-dir some_dir [--var-file some_var_file.yml] --session some_session -apply

fabfed workflow --config-dir some_dir [--var-file some_var_file.yml] --session some_session -show [-summary] [-json]

fabfed workflow --config-dir some_dir [--var-file some_var_file.yml] --session some_session -destroy

# Use this option to manage your workflow sessions
fabfed sessions -show

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

fabfed_py-1.10.1.tar.gz (120.3 kB view details)

Uploaded Source

Built Distribution

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

fabfed_py-1.10.1-py3-none-any.whl (155.8 kB view details)

Uploaded Python 3

File details

Details for the file fabfed_py-1.10.1.tar.gz.

File metadata

  • Download URL: fabfed_py-1.10.1.tar.gz
  • Upload date:
  • Size: 120.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for fabfed_py-1.10.1.tar.gz
Algorithm Hash digest
SHA256 62ff31ef05b0c826e22db199490bdf1e6ea337cb10f1f5644e8cdae3cdb3d24e
MD5 a50c60a25e4e72a9fd548ed1d22d40b9
BLAKE2b-256 5c072235affbd6f6eb2ba5fca244c3d088ed24f9a28f8e4d8dae697c288e21cb

See more details on using hashes here.

File details

Details for the file fabfed_py-1.10.1-py3-none-any.whl.

File metadata

  • Download URL: fabfed_py-1.10.1-py3-none-any.whl
  • Upload date:
  • Size: 155.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for fabfed_py-1.10.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c6bc21b73687e882128950718d0a347bb3d4868000b960796f7a05c89f3d99e0
MD5 1d0f41cb190ff0922f0b998f3185a270
BLAKE2b-256 56e7bb8afed8f116cc014b4395e4503a381fe9e94e217fab1cab27d62c05ef12

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