Proper way to model interfaces using SFPs as Module Types #19670
Replies: 3 comments 2 replies
-
For what it worth, here is my two cents )) Hope it makes sense )) Good luck. |
Beta Was this translation helpful? Give feedback.
-
I have started to think about this. Netbox Labs has also posted a blog post on the topic: https://netboxlabs.com/blog/sfp-modeling-modules-over-inventory-items/ What I am struggling with is the naming of the interface, this is driven by the name of the SFP+ which is inserted into the module-bay. Is there anyway to achieve getting the naming of the interface coming from the parent line card port? |
Beta Was this translation helpful? Give feedback.
-
I've finally found some time to dedicate to this topic, and after spending some time reviewing this and similar discussions I think I've identified a few discrete but related pain points. 1. Delineation between transceiver & interface depends on contextConceptually, there's often no clear distinction between an interface on a switch or router and its pluggable transceiver; we often use the two term interchangeably. For instance, one might refer to an interface in practice as QSFP+, as 40GBASE-S4, or as 40 Gbps Ethernet. All of these may be accurate depending on the context, but individually none of these terms fully capture the complete interface definition. 2. Variable interface assignmentConsider a QSFP+ slot on a switch. How you model the interface(s) this slot provides in NetBox depends on the type of transceiver installed. Installing a 40GBase-C4 direct attach cable (DAC) or 40GBase-S4 will yield a single Ethernet interface operating at 40 Gbps:
However, if you were to remove that transceiver and install a breakout DAC terminating to four physically separate 10 Gbps transceivers on the far end, the local device will instead show four individual channelized interfaces:
I think this is addressed by the new module-based approach: A 40GBase-S4 transceiver, for instance, would have only a single 40 Gbps Ethernet interface defined, whereas a breakout DAC would have four 10 Gbps Ethernet interfaces. 3. Variable interface namingThe matter of interface assignment is further complicated by platform as @RichardVReyden points out above:
NetBox currently doesn't offer any mechanism to automatically alter the name of an interface on a device type or module type depending on the platform, and implementing such a mechanism would be a fairly complex undertaking. Maybe we could do something similar to the token-based approach we use for deriving a position from the parent module bay. 4. NetBox does not provide physical fiber interface typesSuppose you want to create the breakout DAC transceiver with four 10GE interfaces mentioned above. What type do you assign these? NetBox currently doesn't list an applicable option for the interface type, because historically the convention has been to treat the SFP slot as the interface. This can be easily remedied by adding the necessary physical media as interface types. Edit: I've just submitted FR #20321 to propose adding a set of new interface types for this purpose. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Let's say I have a switch with 4 fixed SFP slots. On the switch, these are represented by interface names:
Gi1/0/49-51
I create a module type profile called "SFP" and then create a module type called "GLC-SX-MMD", then on the device type for my switch, I add 4 Module Bays named:
Gi1/0/[49-51]
Then I create a new device for my actual switch.
As an example, my SFP is inserted into Gi1/0/51, so under module bays of the device, I add a module under my Gi1/0/51 module bay and select the GLC-SX-MMD module.
So now comes the question. Is this the appropriate way to model SFP interfaces? I'm guessing not because I have no way to model cable connections if I'm using modules to represent the SFP. Is there any guidance on the currently recommended way, since inventory items are deprecated as of v4.3.
Beta Was this translation helpful? Give feedback.
All reactions