You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Doug,
I really misread what you are trying to do. At the moment this is out of scope, but I will think about it some more. Your use case is a fairly common one, but the syntax and detection of this one might be tricky since hw and os are not created the same way as other components.
Its no big deal anyways for me to go back and modify the generated zenpack to set those relations on os or hw if its somerhing simple and not something inserted in the middle like a chassis in tge storagebase zenpack. Just thought id mention it. I know you can either extend hardware for the entire device class or do it at the base hw. And there reasons to do both.
This may be out of scope for this generator for now but if im adding a new hwcomponent i'll typically add it into init
DeviceHW._relations += (("DSPCards", ToManyCont(ToOne,"ZenPacks.NWN.CiscoUCSNMP.CiscoDSPCard", "hw")), )
then i'll typically"
for d in self.dmd.Devices.getSubDevices():
d.hw.buildRelations()
The text was updated successfully, but these errors were encountered: