8000 GitHub - Vironia72/BeA: Behavior-Driven Intent Specification Architecture
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Vironia72/BeA

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setting up the Environment

Prerequisites: ryu, mininet, and behave

For the best results download the Virtual Machine Image with Ryu and Mininet following the steps here https://github.com/osrg/ryu/wiki/OpenFlow_Tutorial

For using BeA through ONOS, you can install ONOS from https://onosproject.org/software/

Once the virtual machine is ready and running it is time to install the Behave function To do so run the command "pip install behave" If you have any issues the guide can be found here http://pythonhosted.org/behave/install.html

Once you have all of this downloaded and running it is time to install our code. This picture shows how the file structure should be set up

screenshot 65

Once this is done, you are ready to run the code

Running the Code

First we need to launch mininet to do so we run to prompt "sudo mn --mac --controller remote --switch ovsk" This will run an instance of mininet with a basic topology and no running controller

If you have a custom topology you can run the command as shown in the picture, I have included our own as an example

screenshot 68

(note: your custom topology files will need to be located in the mininet/custom folder)

RYU

Then open up a second terminal window and navigate to either "behave/simple_switch" or "behave/rest_firewall"
Once you are in the folder containing the "steps" folder and a ".feature" file run the command "behave"

screenshot 71 (ex: simple_switch)

As you can see now, when you run a pingall test on the mininet network there is now a connection and all packets have been recieved

ONOS

To run a simple example of Service Function Chaining (SFC) through ONOS platform (assuming ONOS is installed on the vm), start ONOS locally. Open a tab of the Terminal and enter ONOS directory:

ubuntu@sdnhubvm:~$ cd onos  

ubuntu@sdnhubvm:~/onos$ tools/build/onos-buck run onos-local -- clean debug 

After ONOS is successfully started, open another tab and connect to the ONOS command line interface (CLI):

ubuntu@sdnhubvm:~$ onos localhost

From the CLI, start the SFC application as follow:
onos> app activate org.onos.unibo

Once application is active, start Mininet topology as described above, and from the Terminal of behave directory, navigate one of the 3 examples: simple_sfc  simple_sfc2  simple_sfc3 . Depending on which directory you decide to enter, enter “behave” command so that proper scenario is started. For example, to start the simple_sfc scenario, enter corresponding folder and run the following command:

behave --no-capture sfc01_natural_language.feature

The same apply for the other two examples, by changing the name of the feature file accordingly.

To exit out of the behave file simply enter "ctrl+c" and for mininet enter ">exit"

Extra note: Please remember to put "export BDNM_ROOT=~/bdnm" or in the .bashrc and source it.

About

Behavior-Driven Intent Specification Architecture

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 98.2%
  • Gherkin 1.8%
0