Modules inside of Modules? #14124
-
Beta Was this translation helpful? Give feedback.
Replies: 7 comments
-
Hello, Apparently the Module model does not allow for nested Modules e.g. module "hierarchy" to be created.
For the moment we still can't model this properly due to the model limitations, and finding workarounds is risky as it may lead to data migrations once the model has evolved to support this kind of use-case ... |
Beta Was this translation helpful? Give feedback.
-
I would be less worried about needing to migrate if the data model extends to support this case, if you want to migrate you can plan to do so but shouldn't need to, whatever conventions you develop to sufficiently model your use case should continue to work even if there is a better built-in or plugin developed later.
With the tools as they stand today a way to model this is to create precomposed Modules that have the standard build-out of sub-modules how you deploy them, so you end up with a module with more or less the right interfaces in it, even if the DB isn't a perfect 1:1 representation of the topology of the hardware. Maybe that means you have 3 or 4 definitions for XCM modules with different MDA/IOM configurations, but that should be a manageable thing and easy for your network engineers to use, right?
—
Mark Tinberg ***@***.***>
Division of Information Technology-Network Services
University of Wisconsin-Madison
…________________________________
From: tdentafix ***@***.***>
Sent: Friday, October 27, 2023 11:20 AM
To: netbox-community/netbox ***@***.***>
Cc: Subscribed ***@***.***>
Subject: Re: [netbox-community/netbox] Modules inside of Modules? (Discussion #14124)
Hello,
Apparently the Module model does not allow for nested Modules e.g. module "hierarchy" to be created.
This would however be extremely beneficial to many of us, as you mentioned. We've been using Nokia gear which can have, in the 7750 FP4 lineup, up to 3 levels of cards (that I know of) :
1. The 7750 SR 2/7/14-s always has a first card call "XCM" (eXpandable Control Module). This card has no interfaces but a lot of processing power and is typically tracked in a company's inventory
2. Then into the XCM you can either insert :
* an MDA, directly (Media Dependant Adapter), that has interfaces (e.g. 100GE/400GE/800GE)
* or an IOM, that can in turn house MDAs (typically lower speeds e.g. 25GE)
For the moment we still can't model this properly due to the model limitations, and finding workarounds is risky as it may lead to data migrations once the model has evolved to support this kind of use-case ...
—
Reply to this email directly, view it on GitHub<#14124 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAS7UM56O5EPWHJUTM4SJ73YBPNOTAVCNFSM6AAAAAA6RNN3WGVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TIMBVGYYTG>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Thanks everyone for chiming in on this, I really appreciate it. I wanted to make sure I wasn't missing something really obvious in the newer version. I'm fine with creating Module Types and then populating the interfaces manually or renaming them. So far in v3.0.2 I had just been instantiating my routers as Device Types with only the Console Ports, Management Interfaces (from controller cards) and Power Ports as part of the overall "template." Then, I would manually input the Interfaces based on the cards and sub-cards installed. That method works just fine. I really can't complain. Incorporating Modules once I upgrade would be really cool, though. I can handle a little manual entry and a degree of abstraction in the meantime. I'm a network guy and not very adept at writing software, or I would try to crack the code on having a responsive middle variable for the automatic/inherited Interface naming. This community is awesome and Netbox has been a life-saver! Thanks again. |
Beta Was this translation helpful? Give feedback.
-
I'm a network guy and not very adept at writing software, or I would try to crack the code on having a responsive middle variable for the automatic/inherited Interface naming.
https://demo.netbox.dev/static/docs/models/dcim/moduletype/
Is Automatic Component Renaming what you are looking for?
—
Mark Tinberg ***@***.***>
Division of Information Technology-Network Services
University of Wisconsin-Madison
…________________________________
From: MattDRogers ***@***.***>
Sent: Monday, October 30, 2023 8:40 AM
To: netbox-community/netbox ***@***.***>
Cc: Mark Tinberg ***@***.***>; Comment ***@***.***>
Subject: Re: [netbox-community/netbox] Modules inside of Modules? (Discussion #14124)
Thanks everyone for chiming in on this, I really appreciate it. I wanted to make sure I wasn't missing something really obvious in the newer version.
I'm fine with creating Module Types and then populating the interfaces manually or renaming them. So far in v3.0.2 I had just been instantiating my routers as Device Types with only the Console Ports, Management Interfaces (from controller cards) and Power Ports as part of the overall "template." Then, I would manually input the Interfaces based on the cards and sub-cards installed. That method works just fine. I really can't complain. Incorporating Modules once I upgrade would be really cool, though. I can handle a little manual entry and a degree of abstraction in the meantime.
I'm a network guy and not very adept at writing software, or I would try to crack the code on having a responsive middle variable for the automatic/inherited Interface naming.
This community is awesome and Netbox has been a life-saver! Thanks again.
—
Reply to this email directly, view it on GitHub<#14124 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAS7UM5ZOL5AFS6LI3BXTELYB6U5HAVCNFSM6AAAAAA6RNN3WGVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TIMRUGE4TE>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
@mtinberg , yes. And I can see how it works for the example given in the documentation. I have been able to get this to work myself. It is the sub-module's position that's giving me grief. Example from the documentation: Something like: So, a little abstraction and manual input appears to be necessary. Which is fine with me. |
Beta Was this translation helpful? Give feedback.
-
It appears nested modules have been introduced in version 4.1 #16983 |
Beta Was this translation helpful? Give feedback.
We have a workaround that we use on our ASR9K's. I simply added the sub-slots as module-bays:
Then only the submodules have interfaces assigned to its module type allowing them to be installed in the correct position:
While the line card does not have any components. This way I can represent the names of components accuratly but unfortunately have to do this by device.
Hope this helps.