We have a connector that communicates to different parts of the device with different ports. HTTPS 443, SSH 22, 1322 for a dataplane switch & 2322 for a controlplane switch. Each has a separate user & password for access. The vendor has noted in a new version that the preferred way to access the switches within the device is to login to SSH port 22 and then subsequently login to each data plane & control plane with different username/pw combinations rather than communicating with those switches directly. Rather than asking how to do this, I'm just making sure this multi-level polling can be allowed in a driver, or whether I need to request that the API allows us to talk directly to each switch.
With a connector you can indeed add several different communication ports to talk to the same device. We have several connectors out there that have several "Serial - IP" connections or several SNMP connections for example.
In general though, splitting things up will however lead to less complicated code and easier code maintenance. (Unless you end up having to duplicate a lot of shared parameters & information)
So in short, yes it can be allowed in a driver but often comes with an increase in code complexity.
So you’re needing multiple SSH connections that will have different credentials and go to different ports (not just 22) in a single connector?
Edit:
If that’s the case, there’s a different XML syntax you can use where you instead of using the parameters with options SSH Username and SSH Password.
My previous answer still remains though. You can do it, but it will increase complexity of your connector.
If it’s an option to separate communication through different connectors without causing too much code duplication with a simple API change. Then I would suggest doing that for better system stability.
If you need to do it through a single connector then you can use:
https://help.dataminer.services/development/#t=DataMinerDevelopmentLibrary_Customerpart3MarkupLanguageMARProtocolPortSettingsProtocol_Portsettings_SSH.htm
Thanks Jan. With my specific use case, can I log into the device via SSH and then log in to each separate switch fabric using different credentials? It’s the 2 stage authentication that I’m unsure about & that I haven’t seen before. The connector would then be polling parameters via the chassis on port 22 with a user/pw and then log into a switch with another user/pw to then GET parameters.