Skip to content

Commit

Permalink
Added some metadata for PyPi
Browse files Browse the repository at this point in the history
  • Loading branch information
Reimann, Timo committed Sep 29, 2021
1 parent 24d8133 commit 71674f1
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,23 @@ Sync Cisco EoX data for the first time
(venv) $ python3 manage.py sync_eox_data
````

To periodically refresh EoX data create a cronjob which calls `sync_eox_data` periodically
```
$ cat /etc/cron.d/netbox_sync_eox_data
# Update Cisco EoX Data every Saturday at 14:03
MAILTO="mail@example.com"
3 14 * * 6 /opt/netbox/venv/bin/python3 /opt/netbox/netbox/manage.py sync_eox_data
```

or log into /tmp file
```
$ cat /etc/cron.d/netbox_sync_eox_data
# Update Cisco EoX Data every Saturday at 14:03
3 14 * * 6 /opt/netbox/venv/bin/python3 /opt/netbox/netbox/manage.py sync_eox_data > /tmp/netbox_sync_eox_data
```

## Configuration
The following options are available:
* `cisco_client_id`: String - Client ID of your plugin installation. Generate it inside [Cisco API Console](https://apiconsole.cisco.com/)
Expand Down
2 changes: 1 addition & 1 deletion netbox_cisco_support/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.4"
__version__ = "0.5"
15 changes: 15 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,24 @@ def get_version(rel_path):
name='netbox-cisco-support',
version=get_version('netbox_cisco_support/version.py'),
description='Implementing Cisco Support APIs into NetBox',
long_description=long_description,
long_description_content_type="text/markdown",
url='https://github.com/goebelmeier/netbox-cisco-support',
project_urls={
"Bug Tracker": "https://github.com/goebelmeier/netbox-cisco-support/issues",
},
author='Timo Reimann',
author_email='timo@goebelmeier.de',
classifiers=[
"Development Status :: 4 - Beta",
"Framework :: Django",
"Intended Audience :: Information Technology",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
"Topic :: System :: Networking",
"Topic :: System :: Systems Administration"
],
license='Apache 2.0',
install_requires=[],
packages=find_packages(),
Expand Down

0 comments on commit 71674f1

Please sign in to comment.