A docker container provides the development and testing environment for eCLAT. Please download, build and execute the container following the instructions here and then execute the test experiments discussed here.
In the following subsections you find some instructions for manually downloading and installing eCLAT, all these steps are automatically performed in the docker container.
Python 3.5 or higher pip version 9.0.1 or higher If necessary, upgrade your version of pip:
$ python -m pip install --upgrade pip
If you cannot upgrade pip due to a system-owned installation, you can run the example in a virtualenv:
$ python -m pip install virtualenv
$ virtualenv venv
$ source venv/bin/activate
$ python -m pip install --upgrade pip
git clone https://github.com/netgroup/eclat-daemon.git
git submodule update --init --recursive
cd eclat-daemon
pip install -r requirements.txt
python -m grpc_tools.protoc -I. --python_out=. --grpc_python_out=. eclat.proto
python -m unittest test.test_grpc #needs eclatd running
python -m unittest test.test_parser
python -m unittest test.test_controller
python eclatd.py #start the daemon
python eclat.py load test/eclat_scripts/basic_example.eclat --define DEVNAME eth0
python eclat.py read-map /sys/fs/bpf/maps/system/hvm_chain_map
python eclat.py read-map /sys/fs/bpf/maps/system/hvm_chain_map --lookup 64