# Table of contents
- [Description](#descr)
- [Installation](#install)
- [Operation Instructions](#operate)
# <a name="descr"></a>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](https://www.chameleoncloud.org/) provider and a [fabric](https://portal.fabric-testbed.net/) provider. The configuration, while incomplete, highlights how fabfed-py expresses dependencies.
- For more details, refer to fabfed's [workflow design](./docs/workflow_design.md)
- For a complete example, refer to [Fabric Chameleon Stitching](./examples/basic-stitching/chameleon)
```
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 }}'
```
# <a name="install"></a>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
```
# <a name="operate"></a>Operation Instructions
- Fabfed worflow configuration is specified across one or more <i>.fab<i> 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 <b>.fab</b> extension in the directory specified by
the <i>--config-dir</i>. 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
```
Raw data
{
"_id": null,
"home_page": "https://github.com/fabric-testbed/fabfed",
"name": "fabfed-py",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": null,
"keywords": "Fabfed Framework, Cloud, FABRIC, Chameleon, MOC",
"author": "Abdelilah Essiari,Ezra Kissel,Liang Zhang",
"author_email": "aessiari@lbl.gov",
"download_url": "https://files.pythonhosted.org/packages/3f/fb/fb02156d9cb45180b30410027dfcdd48ccc9f4d04a0159eca7741f0dcdd0/fabfed_py-1.9.tar.gz",
"platform": null,
"description": "# Table of contents\n\n - [Description](#descr)\n - [Installation](#install)\n - [Operation Instructions](#operate)\n\n# <a name=\"descr\"></a>Description\nThe 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.\n\nThe FabFed code took the initial form from the Mobius API, and refactored and reinvented the slice modeling, user interface, data structure and stitching workflows. \n\nThe example below showcases network stitching across providers, a [chi](https://www.chameleoncloud.org/) provider and a [fabric](https://portal.fabric-testbed.net/) provider. The configuration, while incomplete, highlights how fabfed-py expresses dependencies. \n\n- For more details, refer to fabfed's [workflow design](./docs/workflow_design.md)\n- For a complete example, refer to [Fabric Chameleon Stitching](./examples/basic-stitching/chameleon)\n\n```\n 1 resource:\n 2\n 3 - network:\n 4 - chi_network:\n 5 provider: '{{ chi.chi_provider }}'\n 6 site: CHI@UC\n 7\n 8 - network:\n 9 - fabric_network:\n 10 provider: '{{ fabric.fabric_provider }}'\n 11 site: 'STAR'\n 12 stitch_with:\n 13 - network: '{{ network.chi_network }}'\n```\n\n# <a name=\"install\"></a>Installation\n\nFabFed is available at PyPI.\n```\npip install fabfed-py\n```\n\n\nAlternatively, you may install and test using the following commands:\n```\npip install -e .\nfabfed --help\nfabfed stitch-policy --help\nfabfed workflow --help\nfabfed sessions --help\n```\n\nIf using the CloudLab provider, the following portal-tools module is a required dependency:\n```\npip install git+https://gitlab.flux.utah.edu/stoller/portal-tools.git\n```\n\n# <a name=\"operate\"></a>Operation Instructions\n- Fabfed worflow configuration is specified across one or more <i>.fab<i> 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. \n- Fabfed will pickup any file ending with the <b>.fab</b> extension in the directory specified by\nthe <i>--config-dir</i>. If this option is not present, the current directory is used. \n- 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. \n- The --session is a friendly name used to track a given workflow. \n- Use the --help options shown above if in doubt. \n- When stitching networks across provider use `stitch-policy` to discover available stitch information \n\n```\n# Example to view stitch policy from cloudlab to fabric\nfabfed stitch-policy -providers \"fabric,cloudlab\"\n\n# Validation\nfabfed workflow --config-dir some_dir [--var-file some_var_file.yml] --session some_session -validate\nfabfed workflow --config-dir some_dir [--var-file some_var_file.yml] --session some_session -stitch-info [-summary] [-json]\n\nfabfed workflow --config-dir some_dir [--var-file some_var_file.yml] --session some_session -plan [-summary] [-json]\n\nfabfed workflow --config-dir some_dir [--var-file some_var_file.yml] --session some_session -apply\n\nfabfed workflow --config-dir some_dir [--var-file some_var_file.yml] --session some_session -show [-summary] [-json]\n\nfabfed workflow --config-dir some_dir [--var-file some_var_file.yml] --session some_session -destroy\n\n# Use this option to manage your workflow sessions\nfabfed sessions -show\n```\n\n",
"bugtrack_url": null,
"license": null,
"summary": "Fabfed Framework",
"version": "1.9",
"project_urls": {
"Homepage": "https://github.com/fabric-testbed/fabfed"
},
"split_keywords": [
"fabfed framework",
" cloud",
" fabric",
" chameleon",
" moc"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "d477e18efb6f0bbbbcf12e4cbde265cc03d138f8f22683d2ec83d5bd429b2f01",
"md5": "6d224631ff29f4bf2455838ff3c55279",
"sha256": "1bf8719c37372a060e345e98b743dac459bac0d7b47b40aee9b20fb24fc054d2"
},
"downloads": -1,
"filename": "fabfed_py-1.9-py3-none-any.whl",
"has_sig": false,
"md5_digest": "6d224631ff29f4bf2455838ff3c55279",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 150854,
"upload_time": "2024-10-16T02:27:45",
"upload_time_iso_8601": "2024-10-16T02:27:45.948601Z",
"url": "https://files.pythonhosted.org/packages/d4/77/e18efb6f0bbbbcf12e4cbde265cc03d138f8f22683d2ec83d5bd429b2f01/fabfed_py-1.9-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "3ffbfb02156d9cb45180b30410027dfcdd48ccc9f4d04a0159eca7741f0dcdd0",
"md5": "ba19293ab2df8e7321ac738dfa454108",
"sha256": "e66ed226f90d1b003f6bb024486e4e3d6b3d42668b7941c67c2bee858c93a552"
},
"downloads": -1,
"filename": "fabfed_py-1.9.tar.gz",
"has_sig": false,
"md5_digest": "ba19293ab2df8e7321ac738dfa454108",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 116709,
"upload_time": "2024-10-16T02:27:47",
"upload_time_iso_8601": "2024-10-16T02:27:47.890203Z",
"url": "https://files.pythonhosted.org/packages/3f/fb/fb02156d9cb45180b30410027dfcdd48ccc9f4d04a0159eca7741f0dcdd0/fabfed_py-1.9.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-16 02:27:47",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "fabric-testbed",
"github_project": "fabfed",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "fabrictestbed-extensions",
"specs": []
},
{
"name": "python-chi",
"specs": []
},
{
"name": "sense-o-api",
"specs": [
[
"==",
"1.26"
]
]
},
{
"name": "ansible",
"specs": [
[
"==",
"9.5.1"
]
]
},
{
"name": "ansible-runner",
"specs": [
[
"==",
"2.3.6"
]
]
},
{
"name": "xmltodict",
"specs": []
},
{
"name": "boto3",
"specs": []
},
{
"name": "google-cloud-compute",
"specs": []
}
],
"lcname": "fabfed-py"
}