-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #151 from ryanmerolle/dev
1.3.0
- Loading branch information
Showing
52 changed files
with
623 additions
and
267 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ REDIS_DATABASE=0 | |
REDIS_HOST=redis | ||
REDIS_INSECURE_SKIP_TLS_VERIFY=false | ||
REDIS_PASSWORD=H733Kdjndks81 | ||
SECRET_KEY=r8OwDznj!!dciP9ghmRfdu1Ysxm0AiPeDCQhKE+N_rClfWNj | ||
SECRET_KEY=r8OwDznj!!dciP9ghmRfdu1Ysxm0AiPeDCQhKE+N_rClfWNjaa | ||
SUPERUSER_API_TOKEN=0123456789abcdef0123456789abcdef01234567 | ||
SUPERUSER_EMAIL=[email protected] | ||
SUPERUSER_NAME=admin | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,5 +10,7 @@ pycodestyle | |
pydocstyle | ||
pylint | ||
pylint-django | ||
ruff | ||
sourcery-analytics | ||
wily | ||
yapf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[flake8] | ||
max-line-length = 160 | ||
max-line-length = 140 | ||
extend-ignore = E203 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
--- | ||
name: CI | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
# This ensures that previous jobs for the workflow are canceled when the ref is | ||
# updated. | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
run-lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
# Full git history is needed to get a proper list of changed files within `super-linter` | ||
fetch-depth: 0 | ||
|
||
- name: Lint Code Base | ||
uses: github/super-linter/slim@v4 | ||
env: | ||
DEFAULT_BRANCH: dev | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SUPPRESS_POSSUM: true | ||
LINTER_RULES_PATH: / | ||
VALIDATE_ALL_CODEBASE: false | ||
VALIDATE_DOCKERFILE: false | ||
VALIDATE_JSCPD: true | ||
FILTER_REGEX_EXCLUDE: (.*/)?(configuration/.*) | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
name: Runs plugin tests | ||
needs: run-lint | ||
steps: | ||
- id: git-checkout | ||
name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- id: docker-test | ||
name: Test the image | ||
run: ./test.sh snapshot |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"threshold": 10, | ||
"ignore": ["**/migrations/**", "**/tests/**"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
ARG NETBOX_VARIANT=v3.5 | ||
|
||
FROM netboxcommunity/netbox:${NETBOX_VARIANT} | ||
|
||
RUN mkdir -pv /plugins/netbox-acls | ||
COPY . /plugins/netbox-acls | ||
|
||
RUN /opt/netbox/venv/bin/python3 /plugins/netbox-acls/setup.py develop && \ | ||
cp -rf /plugins/netbox-acls/netbox_acls/ /opt/netbox/venv/lib/python3.10/site-packages/netbox_acls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
include README.md | ||
include LICENSE | ||
recursive-include netbox_acls/templates * | ||
recursive-include netbox_acls/static * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
- TODO: ACL Form Bubble/ICON Extended/Standard | ||
- TODO: Add an Access List to an Interface Custom Fields after comments - DONE | ||
- TODO: ACL rules, look at last number and increment to next 10 | ||
- TODO: Clone for ACL Interface should include device | ||
- TODO: Inconsistent errors for add/edit (where model is using a generic page) | ||
- TODO: Check Constants across codebase for consistency. | ||
- TODO: Test API, Forms, & Models - https://github.com/k01ek/netbox-bgp/tree/main/netbox_bgp/tests , https://github.com/DanSheps/netbox-secretstore/tree/develop/netbox_secretstore/tests & https://github.com/FlxPeters/netbox-plugin-prometheus-sd/tree/main/netbox_prometheus_sd/tests |
Oops, something went wrong.