-
Notifications
You must be signed in to change notification settings - Fork 21
VEW: Vim Emulator Wrapper Development and Test Setup
Manuel Peuster edited this page Jul 5, 2018
·
1 revision
On Ubuntu 16.04:
- Create configuration files on host system:
/etc/son-mano/postgres.config
{
"repo_host": "127.0.0.1",
"repo_port": "5432",
"user": "sonatatest",
"pass": "sonata",
}
/etc/son-mano/broker.config
{
"broker_url": "",
"exchange": ""
}
- Start the database:
docker run -d -p 5432:5432 --name son-postgres -e POSTGRES_DB=gatekeeper -e POSTGRES_USER=sonatatest -e POSTGRES_PASSWORD=sonata ntboes/postgres-uuid - Start vim-emu
- Build vim-emu docker container as mentioned in vim-emu-wiki.
sudo docker run --name vim-emu -p 5001:5001 -it --rm --privileged --pid='host' -v /var/run/docker.sock:/var/run/docker.sock vim-emu-img /bin/bash
- Execute
python examples/osm_default_daemon_topology_2_pop.pyin vim-emu docker container
For further information consult vim-emu wiki
Now, everything is ready for executing tests. For example, you can execute the VIMEmuIntegrationTest:
- Clone repo and start maven workflow producing JARs
- Invoke VIMEmuIntegrationTest:
son-sp-infrabstract/vim-adaptor/adaptor$ mvn -Dtest=VIMEmuIntegrationTest test
deploys an example service on vim-emu. The deployment involves setting up containers, network interfaces and a service chain.
The implementation of the vim-emu wrapper is made along with assumptions:
- Every VNF consists of one VDU
- Forwarding path is equal to ConnectionPoints in NSD