示例#1
0
 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)
示例#2
0
 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)