mirror of
https://github.com/netbox-community/devicetype-library.git
synced 2024-11-28 11:24:37 +01:00
c95b166139
* breaking out tests for easier usage * refactoring codebase * Added verification for properly formatted slug and fixed definitions that were incorrect * Adding new test case to ensure the file name matches either the slug or the part_number * fixed file names to match proper formatting
22 lines
430 B
Python
22 lines
430 B
Python
SCHEMAS = (
|
|
('device-types', 'devicetype.json'),
|
|
('module-types', 'moduletype.json'),
|
|
)
|
|
|
|
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',
|
|
)
|
|
|
|
KNOWN_SLUGS = set() |