From b9794cdf72f5c5b6dbdd5332473a14ce57a5974d Mon Sep 17 00:00:00 2001 From: Justin Parsell Date: Thu, 15 Feb 2024 17:47:01 +0000 Subject: [PATCH] Upload files to "/" --- .gitignore | 3 +++ README.md | 20 ++++++++++++++++++++ launch.json | 19 +++++++++++++++++++ settings.json | 8 ++++++++ setup.py | 11 +++++++++++ 5 files changed, 61 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 launch.json create mode 100644 settings.json create mode 100644 setup.py diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4c813cd --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*.egg-info/ +.vscode/ +*__pycache__/ \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..bcbda76 --- /dev/null +++ b/README.md @@ -0,0 +1,20 @@ +# Introduction +This plugin builds out a integration with DNAC into NetBox, allowing DNAC to fill in information for NetBox so that a user won't manually have to add it in + +# Getting Started +TODO: Publish and list steps to install + +# Build and Test +To develop for this plugin, you need to have the following installed + +1. DNAC Instance with data populated +2. Bare-metal NetBox installation working + +From there, clone this repo and do the following steps +1. Create a v-env + 1. Be sure to include the netbox v-env +2. Run 'python setup.py develop' +3. Include 'dnac_integration' in NetBox's plugin configuration +4. Migrate the NetBox database utilizing the built-in features + +You should be good to begin developing from there \ No newline at end of file diff --git a/launch.json b/launch.json new file mode 100644 index 0000000..9651970 --- /dev/null +++ b/launch.json @@ -0,0 +1,19 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "runserver", + "type": "python", + "request": "launch", + "program": "/opt/netbox/netbox/manage.py", + "console": "integratedTerminal", + "justMyCode": true, + "args": [ + "runserver", "0.0.0.0:8000" + ] + } + ] +} \ No newline at end of file diff --git a/settings.json b/settings.json new file mode 100644 index 0000000..0cf75a5 --- /dev/null +++ b/settings.json @@ -0,0 +1,8 @@ +{ + "python.autoComplete.extraPaths": [ + "/opt/netbox/netbox/" + ], + "python.analysis.extraPaths": [ + "/opt/netbox/netbox/" + ] +} \ No newline at end of file diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..f92d15b --- /dev/null +++ b/setup.py @@ -0,0 +1,11 @@ +from setuptools import find_packages, setup + +setup( + name='dnac_integration', + version='0.1', + description='Allows DNAC to import devices into Netbox', + install_requires=[], + packages=find_packages(), + include_package_data=True, + zip_safe=False, +) \ No newline at end of file