mirror of
https://github.com/netbox-community/devicetype-library.git
synced 2024-11-24 17:34:17 +01:00
Jpsu fix (#1520)
* Added test functionality to use original all files testing. Fixed JPSU-920-AC-AFO issue from Issue#1514 * Fixed JPSU issue * Fixing file format issue * fixing file we altered by accident
This commit is contained in:
parent
d191429457
commit
cfbc3ec223
@ -1,8 +1,15 @@
|
||||
---
|
||||
manufacturer: Juniper
|
||||
model: JPSU-920-AC-AFO
|
||||
part_number: 640-060601
|
||||
comments: |
|
||||
EX Series 920 W AC power supply (front-to-back airflow)
|
||||
|
||||
Compatible with
|
||||
* EX3400 PoE models
|
||||
* EX4100 PoE models
|
||||
|
||||
[Juniper EX4100 Data Sheet](https://www.juniper.net/content/dam/www/assets/datasheets/us/en/switches/ex4100-line-of-ethernet-switches-datasheet.pdf)
|
||||
power-ports:
|
||||
- name: Power Supply {module}
|
||||
type: iec-60320-c14
|
||||
|
@ -1,16 +0,0 @@
|
||||
---
|
||||
manufacturer: Juniper
|
||||
model: JPSU-920-AC-AFO
|
||||
part_number: 640-060601
|
||||
comments: |
|
||||
EX Series 920 W AC power supply (front-to-back airflow)
|
||||
|
||||
Compatible with
|
||||
* EX3400 PoE models
|
||||
* EX4100 PoE models
|
||||
|
||||
[Juniper EX4100 Data Sheet](https://www.juniper.net/content/dam/www/assets/datasheets/us/en/switches/ex4100-line-of-ethernet-switches-datasheet.pdf)
|
||||
power-ports:
|
||||
- name: Power Supply {module}
|
||||
type: iec-60320-c14
|
||||
maximum_draw: 920
|
@ -1,4 +1,4 @@
|
||||
from test_configuration import COMPONENT_TYPES, IMAGE_FILETYPES, SCHEMAS, KNOWN_SLUGS, ROOT_DIR, USE_LOCAL_KNOWN_SLUGS, NETBOX_DT_LIBRARY_URL, KNOWN_MODULES
|
||||
from test_configuration import COMPONENT_TYPES, IMAGE_FILETYPES, SCHEMAS, KNOWN_SLUGS, ROOT_DIR, USE_LOCAL_KNOWN_SLUGS, NETBOX_DT_LIBRARY_URL, KNOWN_MODULES, USE_UPSTREAM_DIFF
|
||||
import pickle_operations
|
||||
from yaml_loader import DecimalSafeLoader
|
||||
from device_types import DeviceType, ModuleType, verify_filename, validate_components
|
||||
@ -105,7 +105,10 @@ def test_environment():
|
||||
if definition_files:
|
||||
pytest.skip("No changes to definition files found.")
|
||||
|
||||
definition_files = _get_diff_from_upstream()
|
||||
if USE_UPSTREAM_DIFF:
|
||||
definition_files = _get_diff_from_upstream()
|
||||
else:
|
||||
definition_files = _get_definition_files()
|
||||
image_files = _get_image_files()
|
||||
|
||||
if USE_LOCAL_KNOWN_SLUGS:
|
||||
|
@ -27,5 +27,6 @@ KNOWN_SLUGS = set()
|
||||
KNOWN_MODULES = set()
|
||||
|
||||
USE_LOCAL_KNOWN_SLUGS = False
|
||||
USE_UPSTREAM_DIFF = True
|
||||
|
||||
NETBOX_DT_LIBRARY_URL = "https://github.com/netbox-community/devicetype-library.git"
|
Loading…
Reference in New Issue
Block a user