Go into the rift-fsm directory that was created when you cloned the git repository:
$ cd ~/rift-python
Make sure the Python environment that you created during the installation is activated. This is needed to make sure you run the right version of Python 3 and that the right versions of all dependency modules can be found:
$ source env/bin/activate (env) $
Start the RIFT protocol engine in interactive mode (i.e. using stdin and stdout for the CLI) as follows:
(env) $ python rift --interactive topology/two_by_two_by_two.yaml agg_101>
You can now enter CLI commands, for example:
agg_101> show interfaces +-------------+-----------------------+-----------+-----------+-------------------+-------+ | Interface | Neighbor | Neighbor | Neighbor | Time in | Flaps | | Name | Name | System ID | State | State | | +-------------+-----------------------+-----------+-----------+-------------------+-------+ | if_101_1 | core_1:if_1_101 | 1 | THREE_WAY | 0d 00h:00m:01.15s | 0 | +-------------+-----------------------+-----------+-----------+-------------------+-------+ | if_101_1001 | edge_1001:if_1001_101 | 1001 | THREE_WAY | 0d 00h:00m:01.14s | 0 | +-------------+-----------------------+-----------+-----------+-------------------+-------+ | if_101_1002 | edge_1002:if_1002_101 | 1002 | THREE_WAY | 0d 00h:00m:01.13s | 0 | +-------------+-----------------------+-----------+-----------+-------------------+-------+ | if_101_2 | core_2:if_2_101 | 2 | THREE_WAY | 0d 00h:00m:01.14s | 0 | +-------------+-----------------------+-----------+-----------+-------------------+-------+
Exit the RIFT CLI and terminate the RIFT engine as follows:
agg_101> exit (env) $