semvec/pypi-packages huggingface dataset:
cumulus-vxconfig 1.0.5
 Transform and simplify configuration variables.
License: MIT

A python script that is use as a Ansible custom filter to simplify the configuration variables defined in  [`cumulus-evpn-vxlan-ansible/master.yml`](https://github.com/rynldtbuen/cumulus-evpn-vxlan-ansible/blob/v1.0/master.yml) to deploy Cumulus EVPN VXLAN in Symmetric Routing


- **Install pip, env and git**

  Debian/Ubuntu distribution:
  ```
  $ sudo apt update
  $ sudo apt install python3-pip python3-venv git
  ```
  For other distribution refer to the [Installing pip/setuptools/wheel with Linux Package Managers](https://packaging.python.org/guides/installing-using-linux-tools/#installing-pip-setuptools-wheel-with-linux-package-managers)
- **Create and activate a virtual environment**
```
$ mkdir <DIR>
$ python3 -m venv <DIR>
$ source <DIR>/bin/activate
```
- **Upgrade pip, setuptools and install the [cumulus_vxconfig](https://github.com/rynldtbuen/cumulus-vxconfig)**.

  ***Make sure that you activated the virtual environment before you install the script***
```
$ pip install -U pip setuptools
$ pip install cumulus_vxconfig
```
- **Clone the playbook and run a test**
```
$ git clone https://github.com/rynldtbuen/cumulus-evpn-vxlan-ansible.git && cd cumulus-evpn-vxlan-ansible
$ cumulus_getconfig -c mlag_bonds
{
    "leaf01": {
        "bonds": [
            {
                "name": "control01",
                "vids": "500-501",
                "clag_id": 1,
                "tenant": "tenant01",
                "members": "swp1",
                "alias": "tenant01.rack01.1"
            }
        ],
        "bridge": [
            {
                "mode": "vids",
                "vids": "500-501",
                "bonds": "control01"
            }
        ]
    },
...
```