devicetype-library icon indicating copy to clipboard operation
devicetype-library copied to clipboard

Cisco ASR9912 and a9922 Module Bay Update

Open segachan opened this issue 9 months ago • 11 comments

Same as the title.

segachan avatar Mar 12 '25 06:03 segachan

Please raise a PR for to fix this issue or explain what needs to be changed so someone else can create a PR for it.

harryajc avatar Mar 12 '25 09:03 harryajc

@harryajc I'm making device-type yaml, but I'm confusing how the relation and describing of the power module and power tray.

From ref.[2]:

The chassis has four power trays. The version 2 power system has four AC or DC power modules in each power tray. The version 3 power system has three AC power modules or four DC power modules in each power tray.

  • Cisco ASR 9922 chassis has the such as Power-bays in my guess.
  • A Power-tray can be housed in a Power-Bay, and Chassis could have multi Power-Trays.
  • Multi Power Modules could be housed in a Power Tray.

I feel it's difficult to represent the above Power Trays and Power modules, using power-ports in device-type yaml.

[1]https://www.cisco.com/c/en/us/products/collateral/routers/asr-9000-series-aggregation-services-routers/data_sheet_c78-501767.html

[2]https://www.cisco.com/c/en/us/td/docs/iosxr/asr9000/hardware-install/overview-reference/b-asr9k-overview-reference-guide/b-asr9k-overview-reference-guide_chapter_01.html

segachan avatar Mar 24 '25 03:03 segachan

Hi @segachan The correct way for this to be modeled, is the added them as module-bays on the device. Then create the required AC and DC PSUs as a module. Then in netbox you can install the required module into the module-bays and it will give you the power ports in that exist on those modules

harryajc avatar Mar 24 '25 15:03 harryajc

Hi @harryajc Thank you for your reply.

Hi @segachan The correct way for this to be modeled, is the added them as module-bays on the device. Then create the required AC and DC PSUs as a module. Then in netbox you can install the required module into the module-bays and it will give you the power ports in that exist on those modules

I'm trying to use module-bays feature. Power Tray's number should be placeholed, and the Power Module's number should be also placeholded. And Power Module is inserted to Power tray, and Power Tray is inserted to Chassis.

  • Cisco ASR9922 Chassis
    • Power Tray 0
      • Power Module 0 : PT0/M0
      • Power Module 1 : PT0/M1
      • Power Module 2 : PT0/M2
      • Power Module 3 : PT0/M3
    • Power Tray 1
      • Power Module 0 : PT1/M0
      • Power Module 1 : PT1/M1
      • Power Module 2 : PT1/M2
      • Power Module 3 : PT1/M3
    • Power Tray 2...

https://netboxlabs.com/docs/netbox/en/stable/release-notes/version-4.1/ It seems that Nested Device Modules is supported.

How can I model two levels of nested relationships using placeholders?

I'm trying to mode the 9922 yaml and Power Tray yaml, Power Entry Module yaml, like below: First, the snippet of modeled yaml for 9922:

module-bays:
  - name: 0/PT{module}
    label: 0/PT0
    position: 0
    description: Power Module Slot

Second, I'm trying to model the Power Tray A9K-AC-PEM-V3 like below:

---
manufacturer: Cisco
model: A9K-AC-PEM-V3
slug: A9K-AC-PEM-V3
part_number: A9K-AC-PEM-V3
module-bays:
  - name: 0/PT{module}
    label: 0/PT
    position: 0

Third, I'm trying to model the Power Module PWR-6KW-AC-V3 like below:

---
manufacturer: Cisco
model: PWR-6KW-AC-V3
part_number: PWR-6KW-AC-V3
comments: 6000W AC Power for ASR-9922
power-ports:
  - name: PS-{module}
    type: iec-60320-c20
    maximum_draw: 6000

refs. Image

https://www.cisco.com/c/en/us/td/docs/iosxr/asr9000/hardware-install/overview-reference/b-asr9k-overview-reference-guide/b-asr9k-overview-reference-guide_chapter_01.html

https://www.cisco.com/c/dam/en/us/td/i/300001-400000/340001-350000/344001-345000/344085.eps/_jcr_content/renditions/344085.jpg

segachan avatar Apr 06 '25 10:04 segachan

Hi @segachan

Yes that would be correct with 4 module-bays within that power tray. Yes nested modules are supported as of 4.1 and are also now supported by this repository.

harryajc avatar Apr 06 '25 20:04 harryajc

Hi @harryajc

Let me share the three yaml files. I can't see the four Power Entry Module on Power Tray, using Netbox v4.1. Did I miss something?

  • ASR-9922.yaml

---
manufacturer: Cisco
model: ASR-9922
slug: cisco-asr-9922
part_number: ASR-9922
u_height: 44
weight: 478.43
weight_unit: kg
is_full_depth: true
subdevice_role: parent
airflow: front-to-rear
front_image: true
description: ASR 9922 20 Line Card Slot Chassis
comments: |
  '[Cisco ASR 9000 Series Aggregation Services Routers Data Sheet](https://www.cisco.com/c/en/us/products/collateral/routers/asr-9000-series-aggregation-services-routers/data_sheet_c78-501767.html)'
  '[Cisco ASR 9000 Series Aggregation Services Router Hardware Installation Guide](https://www.cisco.com/c/en/us/td/docs/iosxr/asr9000/hardware-install/hig/b-asr9k-hardware-installation-guide/b-asr9k-hardware-installation-guide_chapter_00.html)'
  '[Cisco ASR 9000 Series Aggregation Services Router Overview and Reference Guide](https://www.cisco.com/c/en/us/td/docs/iosxr/asr9000/hardware-install/overview-reference/b-asr9k-overview-reference-guide/b-asr9k-overview-reference-guide_chapter_01.html#con_879733__fig_801676)'
power-ports:
  - name: 0/PT0-PM0
    type: iec-60320-c22
    maximum_draw: 6000
  - name: 0/PT0-PM1
    type: iec-60320-c22
    maximum_draw: 6000
  - name: 0/PT0-PM2
    type: iec-60320-c22
    maximum_draw: 6000
  - name: 0/PT1-PM0
    type: iec-60320-c22
    maximum_draw: 6000
  - name: 0/PT1-PM1
    type: iec-60320-c22
    maximum_draw: 6000
  - name: 0/PT1-PM2
    type: iec-60320-c22
    maximum_draw: 6000
  - name: 0/PT2-PM0
    type: iec-60320-c22
    maximum_draw: 6000
  - name: 0/PT2-PM1
    type: iec-60320-c22
    maximum_draw: 6000
  - name: 0/PT2-PM2
    type: iec-60320-c22
    maximum_draw: 6000
  - name: 0/PT3-PM0
    type: iec-60320-c22
    maximum_draw: 6000
  - name: 0/PT3-PM1
    type: iec-60320-c22
    maximum_draw: 6000
  - name: 0/PT3-PM2
    type: iec-60320-c22
    maximum_draw: 6000
module-bays:
  - name: 0/PT0
    label: 0/PT0
    position: 0
    description: Power Module Slot
  - name: 0/PT1
    label: 0/PT1
    position: 1
    description: Power Module Slot
  - name: 0/PT2
    label: 0/PT2
    position: 2
    description: Power Module Slot
  - name: 0/PT3
    label: 0/PT3
    position: 0/PT3
    description: Power Module Slot
  - name: Rack 0
    label: Rack0
    position: 0/Rack0
    description: ASR 9922 20 Line Card Slot Chassis
  - name: Slot 0
    label: LC0
    position: 0/0
    description: Line Card Slot
  - name: Slot 1
    label: LC1
    position: 0/1
    description: Line Card Slot
  - name: Slot 2
    label: LC2
    position: 0/2
    description: Line Card Slot
  - name: Slot 3
    label: LC3
    position: 0/3
    description: Line Card Slot
  - name: Slot 4
    label: LC4
    position: 0/4
    description: Line Card Slot
  - name: Slot 5
    label: LC5
    position: 0/5
    description: Line Card Slot
  - name: Slot 6
    label: LC6
    position: 0/6
    description: Line Card Slot
  - name: Slot 7
    label: LC7
    position: 0/7
    description: Line Card Slot
  - name: Slot 8
    label: LC8
    position: 0/8
    description: Line Card Slot
  - name: Slot 9
    label: LC9
    position: 0/9
    description: Line Card Slot
  - name: FT0
    label: FT0
    position: 0/FT0
    description: Fan Tray Slot
  - name: FT1
    label: FT1
    position: 0/FT1
    description: Fan Tray Slot
  - name: RP0
    label: RP0
    position: 0/RP0
    description: Route Processor
  - name: FC0
    label: FC0
    position: 0/FC0
    description: Fabric Card Slot
  - name: FC1
    label: FC1
    position: 0/FC1
    description: Fabric Card Slot
  - name: FC2
    label: FC2
    position: 0/FC2
    description: Fabric Card Slot
  - name: FC3
    label: FC3
    position: 0/FC3
    description: Fabric Card Slot
  - name: FC4
    label: FC4
    position: 0/FC4
    description: Fabric Card Slot
  - name: FC5
    label: FC5
    position: 0/FC5
    description: Fabric Card Slot
  - name: FC6
    label: FC6
    position: 0/FC6
    description: Fabric Card Slot
  - name: RP1
    label: RP1
    position: 0/RP1
    description: Route Processor
  - name: FT2
    label: FT2
    position: 0/FT2
    description: Fan Tray Slot
  - name: FT3
    label: FT3
    position: 0/FT3
    description: Fan Tray Slot
  - name: Slot 10
    label: LC10
    position: 0/10
    description: Line Card Slot
  - name: Slot 11
    label: LC11
    position: 0/11
    description: Line Card Slot
  - name: Slot 12
    label: LC12
    position: 0/12
    description: Line Card Slot
  - name: Slot 13
    label: LC13
    position: 0/13
    description: Line Card Slot
  - name: Slot 14
    label: LC14
    position: 0/14
    description: Line Card Slot
  - name: Slot 15
    label: LC15
    position: 0/15
    description: Line Card Slot
  - name: Slot 16
    label: LC16
    position: 0/16
    description: Line Card Slot
  - name: Slot 17
    label: LC17
    position: 0/17
    description: Line Card Slot
  - name: Slot 18
    label: LC18
    position: 0/18
    description: Line Card Slot
  - name: Slot 19
    label: LC19
    position: 0/19
    description: Line Card Slot

  • A9K-AC-PEM-V3.yaml
---
manufacturer: Cisco
model: A9K-AC-PEM-V3
slug: A9K-AC-PEM-V3
part_number: A9K-AC-PEM-V3
module-bays:
  - name: 0/PT{module}
    label: 0/PT
    position: 0
    description: Simulated Power Tray IDPROM
  - name: 0/PT{module}
    label: 0/PT
    position: 1
    description: Simulated Power Tray IDPROM
  - name: 0/PT{module}
    label: 0/PT
    position: 2
    description: Simulated Power Tray IDPROM
  - name: 0/PT{module}
    label: 0/PT
    position: 3
    description: Simulated Power Tray IDPROM
  • A9K-AC-PEM-V3.yaml
---
manufacturer: Cisco
model: PWR-6KW-AC-V3
part_number: PWR-6KW-AC-V3
comments: 6000W AC Power for ASR-9922
power-ports:
  - name: PS{module}-PM{module}
    type: iec-60320-c20
    maximum_draw: 6000

segachan avatar Apr 07 '25 00:04 segachan

https://github.com/user-attachments/assets/a66fef9f-3730-4947-b3c3-b1160f5b9db2

segachan avatar Apr 07 '25 04:04 segachan

https://github.com/user-attachments/assets/d1746c43-89a4-4670-9093-80a71be8d373

segachan avatar Apr 07 '25 04:04 segachan

Four module-bays is not displed at 0/PT2 or A9K-AC-PEM-V3 module, on netbox GUI. I could not make multi Power Module, could make only one Power Module inside the Power Tray.

Did I miss something to use GUI or misstake to make the yaml?

https://github.com/user-attachments/assets/5f39c916-0c4c-4eb0-8af5-671e731ed901

segachan avatar Apr 07 '25 04:04 segachan

@harryajc Hi, for present, we couldn't define the module-bays in module-bays inside the module-type yaml file, right?

segachan avatar Nov 01 '25 06:11 segachan

To add more, I know can do that, using netbox GUI.

segachan avatar Nov 01 '25 06:11 segachan