Skip to content

DCIM/Devices: Modules not added #17861

Closed Answered by candlerb
heidl89 asked this question in Help Wanted!
Oct 25, 2024 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

I can reproduce your problem in nbshell:

>>> d = Device(device_type=DeviceType.objects.get(model="RB4011iGS+RM"), role=DeviceRole.objects.get(name="Server"), site=Site.objects.get(name="Test"))
>>> d.full_clean()
>>> d.save()
>>> d.description="hello world"
>>> d.full_clean()
>>> d.save()
>>> d.pk
107

I go to /dcim/devices/107/ in the UI, I see the 'interfaces' tab but not the power ports or console ports tab.

>>> [(a, getattr(d,a)) for a in dir(d) if "_count" in a]
[('console_port_count', 0), ('console_server_port_count', 0), ('device_bay_count', 0), ('front_port_count', 0), ('interface_count', 0), ('interfaces_count', 11), ('inventory_item_count', 0), ('module_bay_count', 0), ('power_o…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@heidl89
Comment options

Comment options

You must be logged in to vote
2 replies
@candlerb
Comment options

@heidl89
Comment options

Answer selected by heidl89
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #17860 on October 25, 2024 12:11.