forked from emersonfelipesp/netbox-proxbox
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path__init__.py
More file actions
executable file
·40 lines (37 loc) · 1.2 KB
/
__init__.py
File metadata and controls
executable file
·40 lines (37 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Netbox plugin related import
from extras.plugins import PluginConfig
class ProxboxConfig(PluginConfig):
name = "netbox_proxbox"
verbose_name = "Proxbox"
description = "Integrates Proxmox and Netbox"
version = "0.0.5-beta1"
author = "Emerson Felipe (@emersonfelipesp)"
author_email = "emerson.felipe@nmultifibra.com.br"
base_url = "proxbox"
required_settings = []
default_settings = {
'proxmox': {
'domain': 'proxbox.example.com', # May also be IP address
'http_port': 8006,
'user': 'root@pam',
'password': 'Strong@P4ssword',
'token': {
'name': 'tokenID',
'value': '039az154-23b2-4be0-8d20-b66abc8c4686'
},
'ssl': False
},
'netbox': {
'domain': 'netbox.example.com', # May also be IP address
'http_port': 80,
'token': '0dd7cddfaee3b38bbffbd2937d44c4a03f9c9d38',
'ssl': False,
'settings': {
'virtualmachine_role_id' : 0,
'node_role_id' : 0,
'site_id': 0
}
}
}
config = ProxboxConfig
from . import proxbox_api