Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get latest changes to the branch #1

Open
wants to merge 385 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
385 commits
Select commit Hold shift + click to select a range
69db5a6
Add anchor link to 'Pull Request'
emersonfelipesp May 2, 2023
3b96c1f
support for custom BASE_URL
ugenk May 11, 2023
83f2697
Merge pull request #109 from ugenk/patch-1
emersonfelipesp May 11, 2023
6fb9fed
Merge branch 'develop' of https://github.com/netdevopsbr/netbox-proxb…
emersonfelipesp May 11, 2023
0ffa6ae
Add docs initial pages
emersonfelipesp May 22, 2023
b57da97
Add GitHub Action to auto-deploy docs and CNAME file
emersonfelipesp May 22, 2023
de04734
Merge pull request #114 from netdevopsbr/docs
emersonfelipesp May 22, 2023
c2fbc5a
Change language to 'eng' and minor fixes
emersonfelipesp May 22, 2023
dad6285
Change language to 'en'
emersonfelipesp May 22, 2023
1577fb9
Copy README to introduction.md and add images
emersonfelipesp May 22, 2023
22da268
Add 'roadmap.md' page
emersonfelipesp May 22, 2023
9737c05
Update README.md to http://proxbox.netbox.dev.br/ Docs
emersonfelipesp May 29, 2023
f301533
Change remaining URLs to proxbox.netbox.dev.br
emersonfelipesp May 29, 2023
319f6cf
Merge branch 'develop' of https://github.com/netdevopsbr/netbox-proxb…
emersonfelipesp May 29, 2023
cb5a887
Add curly bracket fix #117
Langlais115 May 31, 2023
78e3fcc
Merge pull request #1 from Langlais115/Langlais115-patch-1
Langlais115 May 31, 2023
f008c1b
Merge pull request #118 from Langlais115/develop
emersonfelipesp Jun 1, 2023
76c7b79
Update docs.yml changing master to develop branch
emersonfelipesp Jun 29, 2023
75021d0
Modify index.md page to test it
emersonfelipesp Jun 29, 2023
28bfd77
feat(Multi server): Add multi server support https://github.com/netde…
devopstales Jul 6, 2023
5310468
feat(Multi server): Update missing components https://github.com/netd…
devopstales Jul 8, 2023
8edcf65
feat(Multi server): Update README and add custom fields csv https://g…
devopstales Jul 8, 2023
0b39b77
feat(Multi server): Update UI https://github.com/netdevopsbr/netbox-p…
devopstales Jul 8, 2023
37fbd62
fix: Create non existing vlans https://github.com/netdevopsbr/netbox-…
devopstales Jul 8, 2023
482c570
fix(Multi server): Proxmox password authentication
devopstales Jul 8, 2023
0002900
feat(Multi server): Sync single cluster https://github.com/netdevopsb…
devopstales Jul 9, 2023
b850c23
Update README.md with Stars History Graph
emersonfelipesp Jul 13, 2023
dd6768a
Move current navigation to top-level navigation
emersonfelipesp Jul 20, 2023
46e587b
Add 'Contributing' navigation button with external link to communities
emersonfelipesp Jul 20, 2023
ca9d456
Change 'Discord' icon background to gray
emersonfelipesp Jul 20, 2023
42d27b6
Add 'Community' page
emersonfelipesp Jul 20, 2023
df27c08
Add 'GitHub' and 'LinkedIn' sections
emersonfelipesp Jul 20, 2023
ec1afbc
Merge branch 'add-multi-cluster' into develop
emersonfelipesp Jul 21, 2023
64f6f82
Merge pull request #122 from devopstales/develop
emersonfelipesp Jul 21, 2023
beb16c8
Add ']' to fix array error or urls.py module
emersonfelipesp Jul 21, 2023
68121fd
Merge branch 'performance' into develop
emersonfelipesp Jul 21, 2023
965276c
Merge branch 'develop' into add-multi-cluster
emersonfelipesp Jul 21, 2023
3ff985a
Merge pull request #126 from netdevopsbr/add-multi-cluster
emersonfelipesp Jul 21, 2023
9fb5090
Add 'fastapi' app package to refactor proxbox backend
emersonfelipesp Jul 21, 2023
07799d2
Add new main fastapi module and reorganize modules
emersonfelipesp Jul 22, 2023
c4547c4
Saves FastAPI work
emersonfelipesp Jul 22, 2023
8ef170b
Increase result message of '/proxmox' base path including api results
emersonfelipesp Jul 22, 2023
f4e136f
Add static json response to '/' root FastAPI path
emersonfelipesp Jul 24, 2023
a796ec8
Add top-level endpoints like /cluster and /access
emersonfelipesp Jul 24, 2023
f2eee32
Fixed README
CodeBleu Jul 24, 2023
f497a51
Dynamically response to top-level endpoints using '/proxmox/{top_leve…
emersonfelipesp Jul 24, 2023
5a79431
adjust and minimize '/proxmox' json result
emersonfelipesp Jul 24, 2023
ccf610a
change name of api base result
emersonfelipesp Jul 24, 2023
df5781a
Return 'ResourceException' error as HTTP response
emersonfelipesp Jul 24, 2023
0df1150
Add condition if path is 'cluster/resources' to add optional type arg…
emersonfelipesp Jul 24, 2023
5b7a8e2
Add condition if path is 'cluster/resources' to add optional type arg…
emersonfelipesp Jul 24, 2023
a6771bf
Stop using static vars and imports Proxmox Sessions from 'plugins_con…
emersonfelipesp Jul 24, 2023
14ab2ac
Add basic instructions of how to deploy FastAPI
emersonfelipesp Jul 24, 2023
8ffe997
Fix markdown formatting
emersonfelipesp Jul 24, 2023
e015506
Removes <> from variable namespace
emersonfelipesp Jul 24, 2023
45d3d9e
Replace variables to UPPERCASE
emersonfelipesp Jul 24, 2023
a13e7c0
Merge pull request #133 from CodeBleu/develop
emersonfelipesp Jul 24, 2023
cd1d61d
Merge pull request #134 from netdevopsbr/proxmox-fastapi
emersonfelipesp Jul 24, 2023
8b87fb7
Add first HTML response using dependency injection
emersonfelipesp Jul 24, 2023
151bd28
Update README.md with Joao Lucas Macedo's video
emersonfelipesp Jul 25, 2023
3c5744b
Change initial page '/' from JSON to HTML using Jinja2
emersonfelipesp Jul 25, 2023
74e51a8
Add 02 more cards to homepage
emersonfelipesp Jul 25, 2023
5d8142e
Revert proxbox_api/__init__.py change from #07799d2
CodeBleu Jul 26, 2023
2d44f11
Merge pull request #135 from CodeBleu/multi-cluster
emersonfelipesp Jul 31, 2023
3993a04
Saves 'main.py' work
emersonfelipesp Jul 31, 2023
09c0db1
Merge branch 'develop' of https://github.com/netdevopsbr/netbox-proxb…
emersonfelipesp Jul 31, 2023
f083334
fix 404 error
lug-gh Aug 10, 2023
87ca4b7
add missing }
lug-gh Aug 10, 2023
118b5d9
Add systemd proxbox service
emersonfelipesp Aug 17, 2023
134058f
Merge pull request #142 from netdevopsbr/standalone
emersonfelipesp Aug 17, 2023
9441a57
Merge pull request #139 from lug-gh/develop
emersonfelipesp Aug 17, 2023
af2ee3e
Bump gitpython from 3.1.30 to 3.1.34
dependabot[bot] Sep 6, 2023
5dc5ea0
fix missing '{% load static %}' from 'home.html' template
emersonfelipesp Oct 9, 2023
a1ef41a
Merge pull request #147 from netdevopsbr/dependabot/pip/gitpython-3.1.34
emersonfelipesp Oct 9, 2023
e48aaf5
'proxbox.service' systemd running into port 8800
emersonfelipesp Oct 10, 2023
6dd0027
Add FastAPI paths related to plugin settings
emersonfelipesp Oct 10, 2023
a69e990
Add BaseModels for Netbox and Proxmox sessions & add query paramters …
emersonfelipesp Oct 10, 2023
86ec91f
fix: attempt to fix #150
alryaz Oct 10, 2023
ff1aa56
refactor: allow password as token auth fallback
alryaz Oct 10, 2023
99692bd
Finish 'PluginConfig' pydantic model to validate 'netbox_proxbox' plu…
emersonfelipesp Oct 10, 2023
cafcad5
Move pydantic models from main to 'backend.schemas' subpackage
emersonfelipesp Oct 10, 2023
ae58c7c
Add routes and schemas packages to better structure the project
emersonfelipesp Oct 10, 2023
9cfe19c
Add /proxbox/settings/{app} path to retrieve both Proxmox and Netbox …
emersonfelipesp Oct 10, 2023
cbfd99b
Rename 'proxbox_settings' function to 'app_settings'
emersonfelipesp Oct 10, 2023
bc05fd6
Bump gitpython from 3.1.34 to 3.1.37
dependabot[bot] Oct 10, 2023
41d12da
Bump urllib3 from 2.0.4 to 2.0.7
dependabot[bot] Oct 17, 2023
a923054
NetboxSession working, example endpoint: <fastapi>/netbox/status
emersonfelipesp Oct 17, 2023
7eb1fa9
Add '/netbox/openapi' HTTP path and create Annotated var 'NetboxSessi…
emersonfelipesp Oct 18, 2023
805844c
Make pynetbox() assync remove pynetbox attribute from NetboxSession c…
emersonfelipesp Oct 18, 2023
fb71611
Start ProxmoxSession class, not tested yet.
emersonfelipesp Oct 18, 2023
ce1b199
Saves work. ProxboxException created, making error handling better
emersonfelipesp Oct 23, 2023
4e78fbb
'/{top_level}/{second_level}' proxmox dynamic path working with singl…
emersonfelipesp Oct 24, 2023
1ebdcfa
Add Enum validation to '/{top_level}' proxmox path and minor changes
emersonfelipesp Oct 24, 2023
29b6f7f
/proxmox/cluster/resources path working with data validation and resp…
emersonfelipesp Oct 25, 2023
e09689e
Add Query class to describe query parameters of /cluster/resources an…
emersonfelipesp Oct 25, 2023
5bb350f
Separate /proxmox/cluster/{path} routes from proxmox.py into specific…
emersonfelipesp Oct 25, 2023
4d606c7
Create ProxmoxSessions so that I can return not only the session obje…
emersonfelipesp Oct 25, 2023
c27b443
Add docs to 'ProxmoxSession' and 'ProxmoxSessions' and try-excepts to…
emersonfelipesp Oct 26, 2023
db74bf5
proxmox_sessions(), ProxmoxConfigDep and ProxmoxConfigDep returning c…
emersonfelipesp Oct 26, 2023
5ff8d5d
All /proxmox paths working with 'ProxmoxSessionsDep' dependency repre…
emersonfelipesp Oct 27, 2023
36d1d38
Add query descriptions to 'ProxmoxSessionsDep'
emersonfelipesp Oct 27, 2023
0738617
/proxmox/nodes/ path working with pydantic and multi-cluster
emersonfelipesp Oct 27, 2023
b20fc5e
Add first Netbox View 'Clusters' rendering '/proxmox/cluster/status' …
emersonfelipesp Nov 1, 2023
f6ad5bf
Fist React component using Next.js with dynamic data from FastAPI bac…
emersonfelipesp Nov 8, 2023
9fa7a6c
Start styling with tailwind
emersonfelipesp Nov 9, 2023
8a50cb2
Create draft of homepage with tailwind grid and flex
emersonfelipesp Nov 9, 2023
f727064
Split cluster card into components and add navbar
emersonfelipesp Nov 9, 2023
1074c95
Adjust RootLayout with Components
emersonfelipesp Nov 10, 2023
19ac707
Home() component from '/home' path making fetch to backend inside you…
emersonfelipesp Nov 10, 2023
bc73868
Restart ClusterCard style, base CSS already done
emersonfelipesp Nov 14, 2023
1e1d017
Use Composition Pattern to list Proxmox sessions at homepage
emersonfelipesp Nov 14, 2023
70bf70e
Add 'Add New Proxmox Cluster' button (without actions yet)
emersonfelipesp Nov 14, 2023
d362f9a
Merge pull request #158 from netdevopsbr/nextjs
emersonfelipesp Nov 15, 2023
e764634
Add new sub-routes for /netbox and change NetboxSession class to embb…
emersonfelipesp Nov 16, 2023
1ff54c4
Add Site class with get() and post() methods
emersonfelipesp Nov 16, 2023
16e750f
Finish Sites class with fully functionable get() and post() methods
emersonfelipesp Nov 16, 2023
61b9738
'ClusterTypes' functional on '/netbox/virtualization/cluster-types' w…
emersonfelipesp Nov 16, 2023
b9fe50a
Minor fixes to 'Sites' class
emersonfelipesp Nov 16, 2023
0a31442
Parent 'NetboxBase' class working with both 'ClusterType' and 'Sites'…
emersonfelipesp Nov 17, 2023
3671755
Change NetboxBase docstring
emersonfelipesp Nov 17, 2023
884effc
Add 'default_extra_fields' to 'NetboxBase' class to enable Clusters G…
emersonfelipesp Nov 18, 2023
78487f6
Started '_check_duplicate()' to be used by 'get()' and 'post()' metho…
emersonfelipesp Nov 22, 2023
be877bb
Added logging with colored messages
emersonfelipesp Nov 23, 2023
cc57e8c
Saves work
emersonfelipesp Dec 8, 2023
d7a5e63
Adjust default behavior when creating objects and adds detailed log m…
emersonfelipesp Dec 13, 2023
cdfb642
Increase corner cases handling when posting (creating) new objects us…
emersonfelipesp Dec 13, 2023
90542b0
'/proxbox/clusters' path successfully creating Cluster with its Clust…
emersonfelipesp Dec 13, 2023
fc61a60
Add 'Device Types', 'Device Roles', 'Manufacturers' objects types to …
emersonfelipesp Dec 14, 2023
b154ea8
/netbox/dcim/devices correctly adding default Device object
emersonfelipesp Dec 14, 2023
da763af
Add base_dict var and minor changes to use | and |= dict merge syntax
emersonfelipesp Dec 15, 2023
f02c39a
All current backend paths working with both 'GET' and 'POST' HTTPmeth…
emersonfelipesp Dec 19, 2023
2839ea9
Proxbox successfully creating Virtual Machines based on Proxbox using…
emersonfelipesp Dec 19, 2023
b367b36
Add 'asyncio.to_thread' to all pynetbox calls on 'generic.NetboxBase'
emersonfelipesp Dec 20, 2023
379437b
Implement generic caching system to avoid duplicate requests
emersonfelipesp Dec 27, 2023
0826685
Hide sensitive data in web view
q3k Apr 11, 2024
de2bb66
Adapt to Netbox v4.0
emersonfelipesp May 20, 2024
f8032a9
Merge pull request #178 from netdevopsbr/optimize-performance
emersonfelipesp May 27, 2024
a59c44f
Add default object function to netbox Site object
emersonfelipesp May 27, 2024
b3c52af
minor fix to import
emersonfelipesp Jun 25, 2024
db99672
Add 'vcpus', 'memory' and 'disk' properties to Netbox Virtual Machines
emersonfelipesp Jul 24, 2024
1e9cb41
Add Device Role to Virtual Machines when creating it. (QEMU or LXC)
emersonfelipesp Jul 24, 2024
cdad0a5
Virtual Machines platform is updated now. Also created Proxmox VM ID …
emersonfelipesp Jul 29, 2024
12d4635
Add 'Start at Boot' custom field and group Proxmox CF's together
emersonfelipesp Jul 29, 2024
4ef2675
Add interfaces to nodes, but missing bridge and slave ports
emersonfelipesp Aug 1, 2024
c3ac6d8
Save changes
emersonfelipesp Aug 15, 2024
792f8c7
Correctly adding interface with IP address to Devices (Nodes)
emersonfelipesp Aug 21, 2024
6697a2f
Sucessfully creating devices with interfacesd and virtual machines (w…
emersonfelipesp Aug 22, 2024
5abb0fc
Allow creating virtual machines with the same name within the same cl…
emersonfelipesp Aug 22, 2024
cf48673
Getting network data from VM and parsing data into JSON. Next step is…
emersonfelipesp Aug 22, 2024
ebfcd13
Update main.py
Uzoma8Chi Sep 12, 2024
f02c5e0
Save changes
emersonfelipesp Sep 17, 2024
6472f01
Add 'Proxmox Nodes Update' and 'Proxmox Virtual Machines Update' on P…
emersonfelipesp Sep 17, 2024
30442a3
Add log messages to Netbox GUI using Websockets
emersonfelipesp Sep 19, 2024
bfcb460
Merge pull request #181 from Uzoma8Chi/patch-1
emersonfelipesp Sep 23, 2024
24a8dbd
Merge pull request #171 from q3k/q3k/dont-show-sensitive-data
emersonfelipesp Sep 23, 2024
7dd06e3
Merge pull request #153 from alryaz/patch-1
emersonfelipesp Sep 24, 2024
d0b211f
Merge pull request #155 from netdevopsbr/dependabot/pip/urllib3-2.0.7
emersonfelipesp Sep 24, 2024
829998b
Bump braces from 3.0.2 to 3.0.3 in /standalone
dependabot[bot] Sep 24, 2024
3f3b57f
Merge pull request #154 from netdevopsbr/dependabot/pip/gitpython-3.1.37
emersonfelipesp Sep 24, 2024
26257e3
Bump black from 20.8b1 to 24.3.0
dependabot[bot] Sep 24, 2024
dd09afa
Merge pull request #182 from netdevopsbr/dependabot/npm_and_yarn/stan…
emersonfelipesp Sep 24, 2024
1f458e5
Merge pull request #183 from netdevopsbr/dependabot/pip/black-24.3.0
emersonfelipesp Sep 24, 2024
95fc73f
Bump certifi from 2023.7.22 to 2024.7.4
dependabot[bot] Sep 24, 2024
b31d0df
Bump cryptography from 42.0.8 to 43.0.1
dependabot[bot] Sep 24, 2024
cb7227d
Bump urllib3 from 2.0.7 to 2.2.2
dependabot[bot] Sep 24, 2024
917a4f2
Bump idna from 3.4 to 3.7
dependabot[bot] Sep 24, 2024
01026ad
Merge pull request #184 from netdevopsbr/dependabot/pip/certifi-2024.7.4
emersonfelipesp Sep 24, 2024
8e2f602
Merge pull request #185 from netdevopsbr/dependabot/pip/cryptography-…
emersonfelipesp Sep 24, 2024
8a5d10d
Merge pull request #186 from netdevopsbr/dependabot/pip/urllib3-2.2.2
emersonfelipesp Sep 24, 2024
cf2d999
Merge pull request #187 from netdevopsbr/dependabot/pip/idna-3.7
emersonfelipesp Sep 24, 2024
6f74df6
Adding VM Interfaces and ignoring duplicate Virtual Machines and VM I…
emersonfelipesp Oct 11, 2024
e842908
Greatly improving GUI Log Messages by coloring and adding object Netb…
emersonfelipesp Oct 11, 2024
a23a1d6
Add Material Design Icons to Log Messages to make it more readable
emersonfelipesp Oct 14, 2024
0a59d25
Add scrollable div sticking to bottom log messsages
emersonfelipesp Oct 14, 2024
aba695c
Changed websocket endpoint to variable
emersonfelipesp Oct 14, 2024
77153ba
Minor improvement to log messages styling
emersonfelipesp Oct 14, 2024
091193c
Add most common CORS origin to FastAPI middleware
emersonfelipesp Oct 14, 2024
fdb45e3
Add JSON containg Proxmox Version for each card on homepage
emersonfelipesp Oct 14, 2024
fdef108
Simplify 'Proxmox Version' field showing only the actual value and no…
emersonfelipesp Oct 14, 2024
48b5493
Add Proxmox RepoID field on homepage
emersonfelipesp Oct 15, 2024
fe695ac
Add 'Proxmox Cluster Name' and 'Proxmox Cluster Mode'
emersonfelipesp Oct 15, 2024
94afc45
Add more styling to Proxmox Cluster cards on homepage
emersonfelipesp Oct 15, 2024
3820f90
Add Status Badge to the Top-Right corner of Proxmox Cluster card on h…
emersonfelipesp Oct 15, 2024
4fec24d
Bump starlette from 0.37.2 to 0.40.0
dependabot[bot] Oct 15, 2024
d00b7fd
Added Status badge for successful and failure HTTP connections with t…
emersonfelipesp Oct 15, 2024
c1d838f
Add 'Error Message' on top of Proxmox Cluster card with 'Connection E…
emersonfelipesp Oct 15, 2024
810d03a
Merge pull request #188 from netdevopsbr/dependabot/pip/starlette-0.40.0
emersonfelipesp Oct 15, 2024
28aea76
Minor changes
emersonfelipesp Oct 15, 2024
0e8d12a
Merge branch 'develop' of https://github.com/netdevopsbr/netbox-proxb…
emersonfelipesp Oct 15, 2024
1894f81
Add comments to HTML Plugin Homepage file
emersonfelipesp Oct 15, 2024
3d26e58
Add WebSocket verification and inform on GUI in case of failure.
emersonfelipesp Oct 16, 2024
c061157
Add communication failure message also on FastAPI card with Status ba…
emersonfelipesp Oct 16, 2024
420e556
Fix FastAPI status badge on homepage.
emersonfelipesp Oct 16, 2024
dd7f667
Remove embbeded JS and move to Static Django folder.
emersonfelipesp Oct 17, 2024
e5b22fd
Rollback script to homepage template file until a official method to …
emersonfelipesp Oct 18, 2024
7643fdb
Fix Netbox logo on Proxbox homepage
emersonfelipesp Oct 18, 2024
1741754
Add Connection Status Badge do Netbox Card on Proxbox homepage
emersonfelipesp Oct 18, 2024
c0c9694
Add guide to enable Proxbox backend on README.md file
emersonfelipesp Oct 18, 2024
60028d4
Update 'requirements.txt' package with fixed version
emersonfelipesp Oct 18, 2024
7baeec6
Bump starlette from 0.38.6 to 0.40.0
dependabot[bot] Oct 18, 2024
727858d
Merge pull request #190 from netdevopsbr/dependabot/pip/starlette-0.40.0
emersonfelipesp Oct 18, 2024
b977328
Minor fixed
emersonfelipesp Oct 18, 2024
8310a0a
Merge branch 'develop' of https://github.com/netdevopsbr/netbox-proxb…
emersonfelipesp Oct 18, 2024
01dde54
Bump starlette from 0.38.6 to 0.40.0
dependabot[bot] Oct 18, 2024
e6913b9
Remove 'Custom Fields' docs, as it is being created and updated autom…
emersonfelipesp Oct 18, 2024
0f7fc3b
Fix README links
emersonfelipesp Oct 18, 2024
ca42e46
Netbox fields filled with Proxbox API.
emersonfelipesp Oct 18, 2024
46b3f4d
Add more instructions on GUI when Proxbox is not running
emersonfelipesp Oct 19, 2024
b6666a9
Add 'Empty' default value for Proxmox fields filled by API
emersonfelipesp Oct 19, 2024
174ebb5
Add 'service buttons' on FastAPI card on Proxbox homepage and 'Proxbo…
emersonfelipesp Oct 19, 2024
1408075
Merge pull request #191 from netdevopsbr/dependabot/pip/starlette-0.40.0
emersonfelipesp Oct 19, 2024
6004d01
Merge pull request #193 from netdevopsbr/homepage
emersonfelipesp Oct 19, 2024
c530dc9
Customize Proxbox Systemd Status on '/plugins/proxbox/status-proxbox-…
emersonfelipesp Oct 21, 2024
f89ab41
Minor changes
emersonfelipesp Oct 21, 2024
81dfb00
Merge pull request #197 from netdevopsbr/194-corner-cases
emersonfelipesp Oct 21, 2024
72b71e9
Remove 'proxbox_api' entire sub-package (app)
emersonfelipesp Oct 21, 2024
21923a4
Remove unused templates
emersonfelipesp Oct 21, 2024
fc90779
Remove more unused templates. I will create it again from scratch whe…
emersonfelipesp Oct 21, 2024
f38d52c
Remove all unused Views from views.py
emersonfelipesp Oct 21, 2024
b1ee056
Remove all unused URL Paths from urls.py
emersonfelipesp Oct 21, 2024
a808206
Remove all unused Navigation Buttons on Proxbox Navigation
emersonfelipesp Oct 21, 2024
5f61062
Remove all Proxbox Forms from forms.py
emersonfelipesp Oct 21, 2024
f6f9e2e
Remove example.py
emersonfelipesp Oct 21, 2024
f59489d
Remove all Proxbox Filters from filters.py
emersonfelipesp Oct 21, 2024
970b316
Removve all tables from tables.py
emersonfelipesp Oct 21, 2024
f18c9b8
Remove 'template_content' file
emersonfelipesp Oct 21, 2024
1855a0b
Remove entire 'api' Django package, as the API is now made on FastAPI…
emersonfelipesp Oct 21, 2024
6030780
Merge pull request #199 from netdevopsbr/stale-code
emersonfelipesp Oct 21, 2024
91c1f3d
Fix single-quote problem on generic.py
emersonfelipesp Oct 21, 2024
59e677d
Proxbox service succesfully being turned up with provided sudo-user
emersonfelipesp Oct 22, 2024
b61ee2d
All systemctl commands running correctly using provided password (sti…
emersonfelipesp Oct 22, 2024
586890b
Add 'sudo-user' in README docs and try-except when getting sudo-user …
emersonfelipesp Oct 22, 2024
f106a80
Reduce code repititon when changing Proxbox Service Status
emersonfelipesp Oct 22, 2024
c436c67
Update README.md with sudo-user instructions
emersonfelipesp Oct 22, 2024
29f4d63
Update views.py
emersonfelipesp Oct 22, 2024
5c62fb1
Remove unused print/log
emersonfelipesp Oct 22, 2024
6440082
Merge branch 'develop' into sudo-user
emersonfelipesp Oct 22, 2024
7bac8d9
Merge pull request #201 from netdevopsbr/sudo-user
emersonfelipesp Oct 22, 2024
e7eb37e
Add Docs to all FastAPI backend routes (endpoints)
emersonfelipesp Oct 22, 2024
1813bf5
Solves found double-quotes string problem and minor changes
emersonfelipesp Oct 24, 2024
c53e0c5
Proxbox automatically handles if 'proxbox.service' does not exists.
emersonfelipesp Oct 25, 2024
8ca3438
Merge pull request #205 from netdevopsbr/fix-corner-cases
emersonfelipesp Oct 25, 2024
a620abc
Minor fixes to syntax
emersonfelipesp Oct 26, 2024
da71007
Add try-and-except on Netbox PLUGINS_CONFIG import
emersonfelipesp Oct 28, 2024
5e713a3
Increase corner case handling on import config from plugin. Also add …
emersonfelipesp Oct 28, 2024
51b0a3a
Add 'ruff' package
emersonfelipesp Oct 28, 2024
2bd939a
Start fixing Ruff corrections manually
emersonfelipesp Oct 28, 2024
6926a2a
Remove all HTML code commented on 'template/home.html'
emersonfelipesp Oct 28, 2024
0d7a1a4
Minor fixed on HTML
emersonfelipesp Oct 28, 2024
9c2f239
Update dependencies and installation instructions.
emersonfelipesp Oct 31, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: emersonfelipesp
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8]
python-version: ['3.8', '3.9', '3.10']

steps:
- name: Check out repo
Expand Down
49 changes: 49 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: docs
on:
push:
branches:
- develop
- main
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.x
- uses: actions/cache@v2
with:
key: ${{ github.ref }}
path: .cache
- name: Install APT packages
run: |
sudo apt install python3-pip python3-apt python3-cffi python3-brotli -y
sudo apt install libharfbuzz0b libpangoft2-1.0-0 libgtk-3-dev gcc -y
- name: Install PIP packages
run: |
sudo pip3 install Markdown==3.3
sudo pip3 install mkdocs-material
sudo pip3 install mkdocs-minify-plugin
sudo pip3 install mkdocs-redirects
sudo pip3 install pillow cairosvg
- name: Deploy MkDocs Page
run: sudo mkdocs gh-deploy --force
- name: Git Commit staged
run: |
sudo git config --global --add user.name emersonfelipesp
sudo git config --global --add user.email [email protected]
sudo git add .
sudo git commit -m "Saves 'site' html pages"
- name: Git checkout to 'gh-pages' branch
run: |
sudo git checkout gh-pages
sudo git push --set-upstream origin gh-pages
- name: Change custom domain
run: |
sudo echo 'proxbox.netbox.dev.br' > CNAME
sudo git add CNAME
sudo git commit -m "Change custom domain to 'proxbox.netbox.dev.br'"
sudo git push
32 changes: 32 additions & 0 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Upload Python Package

on:
release:
types:
- created

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel build

- name: Build distributable
run: |
python -m build

- name: Publish a Python distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
1 change: 1 addition & 0 deletions CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
proxbox.netbox.dev.br
22 changes: 22 additions & 0 deletions FASTAPI.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Deploy FastAPI

Using **[uvicorn](https://www.uvicorn.org/)** to deploy Proxbox backend using **[FastAPI](https://fastapi.tiangolo.com/)** on port **9000** using development mode with --reload.

### It's not ready for PRODUCTION!

FastAPI was chosen to replace the current Django Backend, but it's not fully implemented and tested.

```
cd /opt/netbox/netbox
uvicorn netbox-proxbox.netbox_proxbox.api.main:app --reload --port 9000
```

## Testing FastAPI

Access the following URL **http://HOST:PORT/proxmox/cluster/resources** to view all VMs/Nodes/Storages of your environment.
Docs: **http://HOST:PORT/docs** or **http://HOST:PORT/redoc**

## Security

The password is not securely stored yet, but I will fix it.
About the integration, we only use **GET HTTP methods** and we do not modify anything of your environment using **POST / PUT** methods, even though the token allows it or not.
Empty file modified MANIFEST.in
100644 → 100755
Empty file.
34 changes: 34 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]
poetry = "*"
invoke = "*"
requests = ">=2"
pynetbox = ">=5"
paramiko = ">=2"
proxmoxer = "*"
fastapi = {extras = ["all"], version = "*"}
typing = "*"
starlette = "*"
uvicorn = "*"
pydantic = "*"
anyio = "*"
websockets = "*"
jinja2 = "*"
ujson = ">=5.7.0"
orjson = ">=3.8.9"
httpcore = "*"
pytest = ">=3.7"
check-manifest = "*"
twine = "*"
netbox-proxbox = "*"
setuptools = "*"
gunicorn = "*"

[dev-packages]

[requires]
python_version = "3.12"
1,738 changes: 1,738 additions & 0 deletions Pipfile.lock

Large diffs are not rendered by default.

Loading