Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In this guide we will refer to ${WORKSPACE} as the environment variable of your workspace, where we suppose also ONOS has been downloaded. Define it on your .bashrc file or make sure that is defined in all your terminal windows.

...

Code Block
languagebash
$ cd ~${WORKSPACE}/onos
$ ONOS_APPS=drivers,openflow,netcfghostprovider,segmentrouting,fpm,dhcprelay,routeradvertisement,t3,hostprobingprovider,drivers.bmv2,pipelines.fabric
$ bazel run onos-local -- clean

...

Code Block
languagebash
$ cd ~${WORKSPACE}/routing/trellis
$ onos-netcfg localhost trellisp4.json

...

Code Block
$ docker run --rm  --privileged -v /tmp/p4mn:/tmp -v~v${WORKSPACE}/routing:/routing -w/routing/trellis -it --name p4trellis --hostname p4trellis -p 50001-50030:50001-50030 --env PYTHONPATH=/root --entrypoint python  opennetworking/p4mn:stable ~/routing/trellis/trellisp4.py --onos-ip 127.0.0.1

...