Should using 'adopt_components' overwrite any of the component parameters when adding a module? #21564
mytechgnome
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've been playing with the
adopt_componentssetting when modeling SFPs, and I've run into a quandary.Here's an example of what I'm working with-
-Device-type created for a switch
--16x module bays created for SFPs
---Module bay names are like Ethernet1/1
---Module position is the same as module bay name (Ethernet1/1)
--16x interfaces are created
---Interface type is '10gbase-x-sfpp'
---Interface names are like Ethernet1/1
-Module-type created for an SFP
--Name is
{module}--Interface added with type '10GBASE-SR (10GE)'
The logic here is that I want the interfaces to be present regardless of the presence of an SFP. The device can have a configuration applied to an interface even if an SFP is not present. Additionally, that configuration persists when an SFP is added/removed.
When I add the SFP module, it properly updates the existing interface to link to the module. However, the interface type does not change. I was expecting that the interface type would be overwritten with the type assigned to the SFP.
Relatedly, I've found that removing the module also deletes the interface instead of ... abandoning? unadopting? the component.
Beta Was this translation helpful? Give feedback.
All reactions