Command-Line Interface (CLI) Reference

This section describes the usage of the Command-Line Interface (CLI) of the Controller.

If you have installed the Controller in a virtual environment, you need to activate it before continuing:

$ source ~/.envs/controller-venv/bin/activate

The CLI can be started by typing the command controller in your terminal:

$ controller

Optionally, you can pass the path of the configuration file containing your settings:

$ controller --env-file config/controller.env

The Controller CLI will start and load the configuration:

INFO:apps.cli.cli:*** Loading configuration from /home/rose/.envs/controller-venv/lib/python3.8/site-packages/rose_srv6_control_plane_controller-0.0.1-py3.8.egg/controller/cli/../config/controller.env
INFO:root:SERVER_DEBUG: False
INFO:apps.cli.cli:*** Validating configuration

****************** CONFIGURATION ******************

ArangoDB URL: http://localhost:8529
ArangoDB username: root
ArangoDB password: ************
Kafka servers: kafka:9092
Enable debug: False

***************************************************


Welcome! Type ? to list commands
controller>

Now the CLI is ready to receive commands. For a list of the available commands, you can see the next sections or type the help command:

controller> help
Commands supported by the Controller CLI

Command

Description

Arguments

Documentation

help

Description of the interactive CLI

exit

Exit from the CLI

srv6

Enter the SRv6 section

SRv6 Functions

srv6pm

Enter the SRv6 Performance Measurement section

SRv6 Performance Measurement Functions

topology

Enter the Topology section

Topology Utilities