A containerized CLI solution for managing R3 Bridge E devices — enabling state monitoring, configuration management, and ring operations.
- State Monitoring: Offers real-time visibility into the operational status of R3 devices.
- Configuration Management: Facilitates efficient deployment and management of device configurations.
- Ring Operations: Enables operations related to ring management of R3 devices.
- Clone the repository:
git clone https://github.com/WICON-RPTU/R3_Docker.git sudo apt-get install -y ca-certificates curl gnupg lsb-release sudo apt install docker.io
- Go to the Directory and build the Docker image:
cd R3_Docker sudo usermod -aG docker $USER newgrp docker docker build -t r3-app .
- Run the Container:
docker run -it r3-app
Once the container is running, you can interact with the CLI to manage R3 Bridge E devices. Below are the available commands:
To monitor the state of a device, use the following command:
poetry run r3erci <ip_address> stateTo Config the R3 Device into a certain Configuration;
poetry run r3erci <ip_address> config 1 1 1To Start an EchoRing after Configuring:
poetry run r3erci <ip_address> startTo configure a json file :
poetry run ppl configure <ip_address> <config_file>.jsonTo Run "ppl" commands there might be some warning to clear those: Inside the container run:
poetry install
poetry lockAfter this there will be no warning in current container, we can make use of this container by noting down its name or it container ID, in this way the warning doesnt come in future.
To Run Known Container:
docker start "container_ID"
docker exec -it "container_ID" /bin/bashTo Check container ID or name use this:
docker ps -a