├── .gitignore ├── .yamllint ├── README.md ├── ansible.cfg ├── filter_plugins └── list.py ├── getinfo ├── nxos-get-interfaces.yml ├── nxos-get-vlans.yml ├── nxos-interfaces.j2 └── nxos-vlans.j2 ├── group_vars └── all.yml ├── hosts ├── provision ├── cleanup-prepare.yml ├── nxos-add.yml └── nxos-remove.yml ├── read-transaction-file.yml ├── services.yml ├── templates ├── cleanup-remove-ports.j2 ├── cleanup-remove-vlans.j2 ├── dump-variables.j2 ├── node-model.j2 └── transaction-to-node.j2 ├── tests ├── ansible.cfg ├── cleanup-test.yml ├── create-getinfo-scenario.sh ├── create-model-scenario.sh ├── dumpvars.yml ├── enable-debugging.yml ├── generate-transaction-tests.sh ├── getinfo.yml ├── hosts-tests ├── inputs │ ├── README.md │ ├── get-if-interfaces-1.json │ ├── get-if-interfaces-100-200.json │ ├── get-if-interfaces-100-202.json │ ├── get-if-raw-1.json │ ├── get-if-raw-100-200.json │ ├── get-if-raw-100-202.json │ ├── get-vlan-raw-1.json │ ├── get-vlan-raw-100-200.json │ ├── get-vlan-raw-100-202.json │ ├── get-vlans-1.json │ ├── get-vlans-100-200.json │ ├── get-vlans-100-202.json │ ├── model-100-200.json │ └── model-100.json ├── list-plugin.yml ├── model.yml ├── predeploy.yml ├── run-predeploy-tests.sh ├── run-transaction-model-tests.sh ├── services │ ├── svc-100-200.yml │ ├── svc-100-202-absent.yml │ ├── svc-100-202.yml │ ├── svc-pd-initial.yml │ ├── svc-pdf-dup-VLAN.yml │ ├── svc-pdf-dup-customer.yml │ ├── svc-pdf-dup-port.yml │ ├── svc-pdf-missing-interface.yml │ ├── svc-pdf-missing-node.yml │ ├── svc-pdok-dup-VLAN.yml │ └── svc-pdok-dup-port.yml ├── trans-model.yml ├── transactions │ ├── cust-remove.yml │ ├── port-add-2node.yml │ ├── port-add.yml │ ├── port-remove.yml │ └── valid │ │ ├── cust-remove-leaf-1-model.json │ │ ├── cust-remove-leaf-2-model.json │ │ ├── port-add-2node-leaf-1-model.json │ │ ├── port-add-2node-leaf-2-model.json │ │ ├── port-add-leaf-1-model.json │ │ ├── port-remove-leaf-1-model.json │ │ └── port-remove-leaf-2-model.json └── unique-plugin.yml ├── tools └── fix ├── transaction.yml ├── validate ├── deployed-services.yml ├── input-file-format.yml ├── predeploy-checks.yml ├── predeploy-interface-check.yml ├── predeploy-node-check.yml ├── predeploy-port-check.yml ├── predeploy-vlan-check.yml ├── transaction-data.yml └── transaction-node-check.yml └── vlan.yml /.gitignore: -------------------------------------------------------------------------------- 1 | /configs 2 | /printouts 3 | /logging 4 | *.pyc 5 | -------------------------------------------------------------------------------- /.yamllint: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/.yamllint -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/README.md -------------------------------------------------------------------------------- /ansible.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/ansible.cfg -------------------------------------------------------------------------------- /filter_plugins/list.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/filter_plugins/list.py -------------------------------------------------------------------------------- /getinfo/nxos-get-interfaces.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/getinfo/nxos-get-interfaces.yml -------------------------------------------------------------------------------- /getinfo/nxos-get-vlans.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/getinfo/nxos-get-vlans.yml -------------------------------------------------------------------------------- /getinfo/nxos-interfaces.j2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/getinfo/nxos-interfaces.j2 -------------------------------------------------------------------------------- /getinfo/nxos-vlans.j2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/getinfo/nxos-vlans.j2 -------------------------------------------------------------------------------- /group_vars/all.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/group_vars/all.yml -------------------------------------------------------------------------------- /hosts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/hosts -------------------------------------------------------------------------------- /provision/cleanup-prepare.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/provision/cleanup-prepare.yml -------------------------------------------------------------------------------- /provision/nxos-add.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/provision/nxos-add.yml -------------------------------------------------------------------------------- /provision/nxos-remove.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/provision/nxos-remove.yml -------------------------------------------------------------------------------- /read-transaction-file.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/read-transaction-file.yml -------------------------------------------------------------------------------- /services.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/services.yml -------------------------------------------------------------------------------- /templates/cleanup-remove-ports.j2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/templates/cleanup-remove-ports.j2 -------------------------------------------------------------------------------- /templates/cleanup-remove-vlans.j2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/templates/cleanup-remove-vlans.j2 -------------------------------------------------------------------------------- /templates/dump-variables.j2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/templates/dump-variables.j2 -------------------------------------------------------------------------------- /templates/node-model.j2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/templates/node-model.j2 -------------------------------------------------------------------------------- /templates/transaction-to-node.j2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/templates/transaction-to-node.j2 -------------------------------------------------------------------------------- /tests/ansible.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/tests/ansible.cfg -------------------------------------------------------------------------------- /tests/cleanup-test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/tests/cleanup-test.yml -------------------------------------------------------------------------------- /tests/create-getinfo-scenario.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/tests/create-getinfo-scenario.sh -------------------------------------------------------------------------------- /tests/create-model-scenario.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/tests/create-model-scenario.sh -------------------------------------------------------------------------------- /tests/dumpvars.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/tests/dumpvars.yml -------------------------------------------------------------------------------- /tests/enable-debugging.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/tests/enable-debugging.yml -------------------------------------------------------------------------------- /tests/generate-transaction-tests.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/tests/generate-transaction-tests.sh -------------------------------------------------------------------------------- /tests/getinfo.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/tests/getinfo.yml -------------------------------------------------------------------------------- /tests/hosts-tests: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/tests/hosts-tests -------------------------------------------------------------------------------- /tests/inputs/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/tests/inputs/README.md -------------------------------------------------------------------------------- /tests/inputs/get-if-interfaces-1.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/tests/inputs/get-if-interfaces-1.json -------------------------------------------------------------------------------- /tests/inputs/get-if-interfaces-100-200.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/tests/inputs/get-if-interfaces-100-200.json -------------------------------------------------------------------------------- /tests/inputs/get-if-interfaces-100-202.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/tests/inputs/get-if-interfaces-100-202.json -------------------------------------------------------------------------------- /tests/inputs/get-if-raw-1.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/tests/inputs/get-if-raw-1.json -------------------------------------------------------------------------------- /tests/inputs/get-if-raw-100-200.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/tests/inputs/get-if-raw-100-200.json -------------------------------------------------------------------------------- /tests/inputs/get-if-raw-100-202.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/tests/inputs/get-if-raw-100-202.json -------------------------------------------------------------------------------- /tests/inputs/get-vlan-raw-1.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/tests/inputs/get-vlan-raw-1.json -------------------------------------------------------------------------------- /tests/inputs/get-vlan-raw-100-200.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/tests/inputs/get-vlan-raw-100-200.json -------------------------------------------------------------------------------- /tests/inputs/get-vlan-raw-100-202.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/tests/inputs/get-vlan-raw-100-202.json -------------------------------------------------------------------------------- /tests/inputs/get-vlans-1.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/tests/inputs/get-vlans-1.json -------------------------------------------------------------------------------- /tests/inputs/get-vlans-100-200.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/tests/inputs/get-vlans-100-200.json -------------------------------------------------------------------------------- /tests/inputs/get-vlans-100-202.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/tests/inputs/get-vlans-100-202.json -------------------------------------------------------------------------------- /tests/inputs/model-100-200.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/tests/inputs/model-100-200.json -------------------------------------------------------------------------------- /tests/inputs/model-100.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/tests/inputs/model-100.json -------------------------------------------------------------------------------- /tests/list-plugin.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/tests/list-plugin.yml -------------------------------------------------------------------------------- /tests/model.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/tests/model.yml -------------------------------------------------------------------------------- /tests/predeploy.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/tests/predeploy.yml -------------------------------------------------------------------------------- /tests/run-predeploy-tests.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/tests/run-predeploy-tests.sh -------------------------------------------------------------------------------- /tests/run-transaction-model-tests.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/tests/run-transaction-model-tests.sh -------------------------------------------------------------------------------- /tests/services/svc-100-200.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/tests/services/svc-100-200.yml -------------------------------------------------------------------------------- /tests/services/svc-100-202-absent.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/tests/services/svc-100-202-absent.yml -------------------------------------------------------------------------------- /tests/services/svc-100-202.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/tests/services/svc-100-202.yml -------------------------------------------------------------------------------- /tests/services/svc-pd-initial.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/tests/services/svc-pd-initial.yml -------------------------------------------------------------------------------- /tests/services/svc-pdf-dup-VLAN.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/tests/services/svc-pdf-dup-VLAN.yml -------------------------------------------------------------------------------- /tests/services/svc-pdf-dup-customer.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/tests/services/svc-pdf-dup-customer.yml -------------------------------------------------------------------------------- /tests/services/svc-pdf-dup-port.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/tests/services/svc-pdf-dup-port.yml -------------------------------------------------------------------------------- /tests/services/svc-pdf-missing-interface.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/tests/services/svc-pdf-missing-interface.yml -------------------------------------------------------------------------------- /tests/services/svc-pdf-missing-node.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/tests/services/svc-pdf-missing-node.yml -------------------------------------------------------------------------------- /tests/services/svc-pdok-dup-VLAN.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/tests/services/svc-pdok-dup-VLAN.yml -------------------------------------------------------------------------------- /tests/services/svc-pdok-dup-port.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/tests/services/svc-pdok-dup-port.yml -------------------------------------------------------------------------------- /tests/trans-model.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/tests/trans-model.yml -------------------------------------------------------------------------------- /tests/transactions/cust-remove.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/tests/transactions/cust-remove.yml -------------------------------------------------------------------------------- /tests/transactions/port-add-2node.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/tests/transactions/port-add-2node.yml -------------------------------------------------------------------------------- /tests/transactions/port-add.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/tests/transactions/port-add.yml -------------------------------------------------------------------------------- /tests/transactions/port-remove.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/tests/transactions/port-remove.yml -------------------------------------------------------------------------------- /tests/transactions/valid/cust-remove-leaf-1-model.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/tests/transactions/valid/cust-remove-leaf-1-model.json -------------------------------------------------------------------------------- /tests/transactions/valid/cust-remove-leaf-2-model.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/tests/transactions/valid/cust-remove-leaf-2-model.json -------------------------------------------------------------------------------- /tests/transactions/valid/port-add-2node-leaf-1-model.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/tests/transactions/valid/port-add-2node-leaf-1-model.json -------------------------------------------------------------------------------- /tests/transactions/valid/port-add-2node-leaf-2-model.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/tests/transactions/valid/port-add-2node-leaf-2-model.json -------------------------------------------------------------------------------- /tests/transactions/valid/port-add-leaf-1-model.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/tests/transactions/valid/port-add-leaf-1-model.json -------------------------------------------------------------------------------- /tests/transactions/valid/port-remove-leaf-1-model.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/tests/transactions/valid/port-remove-leaf-1-model.json -------------------------------------------------------------------------------- /tests/transactions/valid/port-remove-leaf-2-model.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/tests/transactions/valid/port-remove-leaf-2-model.json -------------------------------------------------------------------------------- /tests/unique-plugin.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/tests/unique-plugin.yml -------------------------------------------------------------------------------- /tools/fix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/tools/fix -------------------------------------------------------------------------------- /transaction.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/transaction.yml -------------------------------------------------------------------------------- /validate/deployed-services.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/validate/deployed-services.yml -------------------------------------------------------------------------------- /validate/input-file-format.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/validate/input-file-format.yml -------------------------------------------------------------------------------- /validate/predeploy-checks.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/validate/predeploy-checks.yml -------------------------------------------------------------------------------- /validate/predeploy-interface-check.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/validate/predeploy-interface-check.yml -------------------------------------------------------------------------------- /validate/predeploy-node-check.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/validate/predeploy-node-check.yml -------------------------------------------------------------------------------- /validate/predeploy-port-check.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/validate/predeploy-port-check.yml -------------------------------------------------------------------------------- /validate/predeploy-vlan-check.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/validate/predeploy-vlan-check.yml -------------------------------------------------------------------------------- /validate/transaction-data.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/validate/transaction-data.yml -------------------------------------------------------------------------------- /validate/transaction-node-check.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/validate/transaction-node-check.yml -------------------------------------------------------------------------------- /vlan.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipspace/VLAN-service/HEAD/vlan.yml --------------------------------------------------------------------------------