From d0e76922f9068397a58bf19fcc6553a551c0c40b Mon Sep 17 00:00:00 2001 From: Sjur Fredriksen Date: Tue, 20 Feb 2024 08:53:25 +0100 Subject: [PATCH] ci: revert auth (#6) ci: fix --- .github/workflows/validation.yml | 1 + device-types/Ross/Ultrix-FR1.yaml | 18 ++++++++++++++++ device-types/Ross/Ultrix-FR12.yaml | 32 ++++++++++++++++++++++++++++ device-types/Ross/Ultrix-FR2.yaml | 20 +++++++++++++++++ device-types/Ross/Ultrix-FR5.yaml | 24 +++++++++++++++++++++ module-types/Ross/Ultrix-IP-IO.yaml | 22 +++++++++++++++++++ module-types/Ross/Ultrix-IPX-IO.yaml | 26 ++++++++++++++++++++++ tests/test_configuration.py | 4 +++- 8 files changed, 146 insertions(+), 1 deletion(-) create mode 100644 device-types/Ross/Ultrix-FR1.yaml create mode 100644 device-types/Ross/Ultrix-FR12.yaml create mode 100644 device-types/Ross/Ultrix-FR2.yaml create mode 100644 device-types/Ross/Ultrix-FR5.yaml create mode 100644 module-types/Ross/Ultrix-IP-IO.yaml create mode 100644 module-types/Ross/Ultrix-IPX-IO.yaml diff --git a/.github/workflows/validation.yml b/.github/workflows/validation.yml index 398b13da..7fc35ba7 100644 --- a/.github/workflows/validation.yml +++ b/.github/workflows/validation.yml @@ -63,6 +63,7 @@ jobs: runs-on: ubuntu-latest needs: [lint, format] permissions: + contents: read pull-requests: write steps: - uses: actions/checkout@v4 diff --git a/device-types/Ross/Ultrix-FR1.yaml b/device-types/Ross/Ultrix-FR1.yaml new file mode 100644 index 00000000..9e3231b5 --- /dev/null +++ b/device-types/Ross/Ultrix-FR1.yaml @@ -0,0 +1,18 @@ +--- +manufacturer: Ross +model: Ultrix FR1 +slug: ross-ultrix-fr1 +part_number: 2101AR-201-02D +u_height: 1.0 +is_full_depth: true +airflow: front-to-rear +weight: 4.0 +weight_unit: kg +interfaces: + - name: ENET 1 + type: 1000base-t + - name: ENET 2 + type: 1000base-t +module-bays: + - name: Slot 1 + - name: Slot 2 diff --git a/device-types/Ross/Ultrix-FR12.yaml b/device-types/Ross/Ultrix-FR12.yaml new file mode 100644 index 00000000..d222de07 --- /dev/null +++ b/device-types/Ross/Ultrix-FR12.yaml @@ -0,0 +1,32 @@ +--- +manufacturer: Ross +model: Ultrix FR12 +slug: ross-ultrix-fr12 +u_height: 12.0 +is_full_depth: true +airflow: front-to-rear +comments: Must be accompanied by a Ultricore BCS +weight: 34.5 +weight_unit: kg +interfaces: + - name: ENET 1 + type: 1000base-t + - name: ENET 2 + type: 1000base-t +module-bays: + - name: Slot 1 + - name: Slot 2 + - name: Slot 3 + - name: Slot 4 + - name: Slot 5 + - name: Slot 6 + - name: Slot 7 + - name: Slot 8 + - name: Slot 9 + - name: Slot 10 + - name: Slot 11 + - name: Slot 12 + - name: Slot 13 + - name: Slot 14 + - name: Slot 15 + - name: Slot 16 diff --git a/device-types/Ross/Ultrix-FR2.yaml b/device-types/Ross/Ultrix-FR2.yaml new file mode 100644 index 00000000..72056de3 --- /dev/null +++ b/device-types/Ross/Ultrix-FR2.yaml @@ -0,0 +1,20 @@ +--- +manufacturer: Ross +model: Ultrix FR2 +slug: ross-ultrix-fr2 +part_number: 2101AR-202-02C +u_height: 2.0 +is_full_depth: true +airflow: front-to-rear +weight: 5.4 +weight_unit: kg +interfaces: + - name: ENET 1 + type: 1000base-t + - name: ENET 2 + type: 1000base-t +module-bays: + - name: Slot 1 + - name: Slot 2 + - name: Slot 3 + - name: Slot 4 diff --git a/device-types/Ross/Ultrix-FR5.yaml b/device-types/Ross/Ultrix-FR5.yaml new file mode 100644 index 00000000..bea7f1fc --- /dev/null +++ b/device-types/Ross/Ultrix-FR5.yaml @@ -0,0 +1,24 @@ +--- +manufacturer: Ross +model: Ultrix FR5 +slug: ross-ultrix-fr5 +u_height: 5.0 +is_full_depth: true +airflow: front-to-rear +weight: 6.4 +weight_unit: kg +interfaces: + - name: ENET 1 + type: 1000base-t + - name: ENET 2 + type: 1000base-t +module-bays: + - name: Slot 1 + - name: Slot 2 + - name: Slot 3 + - name: Slot 4 + - name: Slot 5 + - name: Slot 6 + - name: Slot 7 + - name: Slot 8 + - name: Slot 9 diff --git a/module-types/Ross/Ultrix-IP-IO.yaml b/module-types/Ross/Ultrix-IP-IO.yaml new file mode 100644 index 00000000..ccf432e0 --- /dev/null +++ b/module-types/Ross/Ultrix-IP-IO.yaml @@ -0,0 +1,22 @@ +--- +manufacturer: Ross +model: ULTRIX-IP-IO +part_number: ULTRIX-IP-IO +interfaces: + - name: '1' + type: 25gbase-x-sfp28 + - name: '2' + type: 25gbase-x-sfp28 + - name: '3' + type: 25gbase-x-sfp28 + - name: '4' + type: 25gbase-x-sfp28 +rear-ports: + - name: AUX 1 + type: other + positions: 1 + description: SFP + - name: AUX 2 + type: other + positions: 1 + description: SFP diff --git a/module-types/Ross/Ultrix-IPX-IO.yaml b/module-types/Ross/Ultrix-IPX-IO.yaml new file mode 100644 index 00000000..34ddf123 --- /dev/null +++ b/module-types/Ross/Ultrix-IPX-IO.yaml @@ -0,0 +1,26 @@ +--- +manufacturer: Ross +model: ULTRIX-IPX-IO +part_number: ULTRIX-IPX-IO +interfaces: + - name: '1' + type: 100gbase-x-qsfp28 + - name: '2' + type: 100gbase-x-qsfp28 + - name: '3' + type: 100gbase-x-qsfp28 + - name: '4' + type: 100gbase-x-qsfp28 +rear-ports: + - name: A + type: other + positions: 1 + - name: B + type: other + positions: 1 + - name: C + type: other + positions: 1 + - name: D + type: other + positions: 1 diff --git a/tests/test_configuration.py b/tests/test_configuration.py index 729f720e..0a9a4e9a 100644 --- a/tests/test_configuration.py +++ b/tests/test_configuration.py @@ -35,4 +35,6 @@ USE_LOCAL_KNOWN_SLUGS = True USE_UPSTREAM_DIFF = True -NETBOX_DT_LIBRARY_URL = "https://github.com/nrk/netbox-devicetype-library.git" \ No newline at end of file + + +NETBOX_DT_LIBRARY_URL = f"https://github.com/nrkno/netbox-devicetype-library.git" \ No newline at end of file