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.
- For more details, refer to fabfed's workflow design
- For a complete example, refer to Fabric Chameleon Stitching
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 thanNone
. 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file fabfed_py-1.9.tar.gz
.
File metadata
- Download URL: fabfed_py-1.9.tar.gz
- Upload date:
- Size: 116.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e66ed226f90d1b003f6bb024486e4e3d6b3d42668b7941c67c2bee858c93a552 |
|
MD5 | ba19293ab2df8e7321ac738dfa454108 |
|
BLAKE2b-256 | 3ffbfb02156d9cb45180b30410027dfcdd48ccc9f4d04a0159eca7741f0dcdd0 |
File details
Details for the file fabfed_py-1.9-py3-none-any.whl
.
File metadata
- Download URL: fabfed_py-1.9-py3-none-any.whl
- Upload date:
- Size: 150.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bf8719c37372a060e345e98b743dac459bac0d7b47b40aee9b20fb24fc054d2 |
|
MD5 | 6d224631ff29f4bf2455838ff3c55279 |
|
BLAKE2b-256 | d477e18efb6f0bbbbcf12e4cbde265cc03d138f8f22683d2ec83d5bd429b2f01 |