def get_rpc_client(self): """ Return the appropriate RPC (e.g. NETCONF, ssh, etc.) client for this device's platform, if one is defined. """ if not self.platform: return None return RPC_CLIENTS.get(self.platform.rpc_client)