2024-03-22 21:36:57 +01:00
|
|
|
import os
|
|
|
|
|
|
|
|
SCHEMAS = (
|
|
|
|
('device-types', 'devicetype.json'),
|
|
|
|
('module-types', 'moduletype.json'),
|
|
|
|
)
|
2024-03-27 21:53:45 +01:00
|
|
|
SCHEMAS_BASEPATH = f"{os.getcwd()}/schema/"
|
2024-03-22 21:36:57 +01:00
|
|
|
|
|
|
|
IMAGE_FILETYPES = (
|
|
|
|
'bmp', 'gif', 'pjp', 'jpg', 'pjpeg', 'jpeg', 'jfif', 'png', 'tif', 'tiff', 'webp'
|
|
|
|
)
|
|
|
|
|
|
|
|
COMPONENT_TYPES = (
|
|
|
|
'console-ports',
|
|
|
|
'console-server-ports',
|
|
|
|
'power-ports',
|
|
|
|
'power-outlets',
|
|
|
|
'interfaces',
|
|
|
|
'front-ports',
|
|
|
|
'rear-ports',
|
|
|
|
'device-bays',
|
|
|
|
'module-bays',
|
|
|
|
)
|
|
|
|
|
|
|
|
PRECOMMIT_ALL_SWITCHES = [
|
|
|
|
'-a',
|
|
|
|
'--all-files',
|
|
|
|
'--all'
|
|
|
|
]
|
|
|
|
|
|
|
|
ROOT_DIR = os.path.abspath(os.path.join(os.path.dirname( __file__ ), '..'))
|
|
|
|
|
|
|
|
KNOWN_SLUGS = set()
|
|
|
|
KNOWN_MODULES = set()
|
|
|
|
|
|
|
|
USE_LOCAL_KNOWN_SLUGS = False
|
|
|
|
USE_UPSTREAM_DIFF = True
|
|
|
|
|
2024-03-27 21:53:45 +01:00
|
|
|
NETBOX_DT_LIBRARY_URL = "https://github.com/netbox-community/devicetype-library.git"
|