Implement getters from SmartRouter command line
Description
The montratec SmartRouter runs a Linux OS based on buildroot linux. Several operations to handle the shuttles are implemented as command line operations In order to create an Remote Procedure Call application to handle this commands it is necessary to implement a SSH layer of connectivity with its respective commands. We will the paramiko library to implement a python SSH connectivity class
Procedure
-
Implement a class that handles paramiko and can expose methods to call the Montratec's command line commands. - This class must be implemented in a file called here.
- This class must hold the following members
- Host: 10.10.238.40
- Password: unibz
- An instance of paramiko client
- a list with the output of
iportadm discover
- The points 3. and 4. Must be implemented in the
__init__
method. - Test this function here
-
Implement the required methods -
iportadm -
discover -
address -
blink -
discover -
discover -
shuttle
-
-