Commit c08acc24 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

End-to-end Test - Ryu-OpenFlow:

- Fixes in CI/CD
parent 46d391ad
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -133,10 +133,14 @@ end2end_test ryu-openflow:
    - kubectl get pods --all-namespaces

    # Deploy Docker network
    - docker network create --driver bridge --subnet=172.254.252.0/24 --gateway=172.254.252.254 --ip-range=172.254.252.0/24 ryu-of-br
    - >
      docker network create --driver bridge --subnet=172.254.252.0/24 --gateway=172.254.252.254
      --ip-range=172.254.252.0/24 ryu-of-br

    # Deploy Ryu
    - docker run --detach --name ryu --network ryu-of-br --ip 172.254.252.10 "${CI_REGISTRY_IMAGE}/${TEST_NAME}-ryu:${IMAGE_TAG}"
    - >
      docker run --detach --name ryu --network ryu-of-br --ip 172.254.252.10 --publish 8080
      "${CI_REGISTRY_IMAGE}/${TEST_NAME}-ryu:${IMAGE_TAG}"

    # Wait for Ryu to get initialized
    - sleep 3
@@ -159,11 +163,11 @@ end2end_test ryu-openflow:
    - docker logs ryu

    # Deploy Mininet
    #  --ulimit memlock=-1:-1 --ulimit nofile=65536:65536 --ulimit nproc=65536:65536
    - >
      docker run --detach --name mininet --network ryu-of-br --ip 172.254.252.11
      --privileged --volume /lib/modules:/lib/modules
      "${CI_REGISTRY_IMAGE}/${TEST_NAME}-mininet:${IMAGE_TAG}"
    #  --ulimit memlock=-1:-1 --ulimit nofile=65536:65536 --ulimit nproc=65536:65536

    # Wait for initialization of Mininet
    - sleep 10