Skip to content

Commit

Permalink
Add support to net_map plugin for configuring Multus routes
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisdenny committed Jun 24, 2024
1 parent b9380ad commit dee3a9f
Show file tree
Hide file tree
Showing 20 changed files with 570 additions and 65 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ docs/_venv/
docs/dictionary/tmp
**/__pycache__/
.vscode
.venv/*
.env
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -224,3 +224,14 @@ spelling: docs ## Run spell check as in CI
fi

pyspelling -c .spellcheck.yml -v -n documentation -S "docs/_build/html/**/*.html"

.PHONY: plugin-development-enable
plugin-development-enable: # Replace all imports from ansible_collecton to the local git repo and override the PYTHONPATH environment var
grep -rl --include=\*.py --exclude-dir=.venv 'ansible_collections.cifmw.general' | xargs gsed -i 's/from ansible_collections\.cifmw\.general./from /g'
grep PYTHONPATH .env 2>/dev/null || echo "PYTHONPATH=${PWD}" >> .env

.PHONY: plugin-development-disable
plugin-development-disable: # Revert all changes and delete .env if no longer needed
grep -lEr --include=\*.py --exclude-dir=.venv 'from (?:plugins|tests)' | xargs gsed -i -e 's/from plugins/from ansible_collections\.cifmw\.general\.plugins/g' -e 's/from tests/from ansible_collections\.cifmw\.general\.tests/g'
gsed -i '/PYTHONPATH=/d' .env
[ -s .env ] || rm .env
Loading

0 comments on commit dee3a9f

Please sign in to comment.