Skip to content

VEW: Vim Emulator Wrapper Development and Test Setup

Manuel Peuster edited this page Jul 5, 2018 · 1 revision

Prerequisites

On Ubuntu 16.04:

Set up environment

  1. 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": ""
}
  1. 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
  2. Start vim-emu
    1. Build vim-emu docker container as mentioned in vim-emu-wiki.
    2. 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
  3. Execute python examples/osm_default_daemon_topology_2_pop.py in vim-emu docker container

For further information consult vim-emu wiki

Execute tests

Now, everything is ready for executing tests. For example, you can execute the VIMEmuIntegrationTest:

  1. Clone repo and start maven workflow producing JARs
  2. 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.

Assumptions

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

Clone this wiki locally