Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ package eu.netide.configuration.generator.vagrantfile

import eu.netide.configuration.utils.fsa.FSAProvider
import org.eclipse.core.resources.IResource
import org.eclipse.emf.common.util.URI
import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl

/**
* Sets up the necessary tools to generate a Vagrantfile
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ class VagrantfileGenerator {
url = bundle.getEntry("scripts/install_tools.sh")
var toolscriptpath = scriptpath(url)

url = bundle.getEntry("scripts/install_onos.sh")
var onosscriptpath = scriptpath(url)

// var controllerPlatformKeys = input.allContents.filter(typeof(Controller)).map [ c |
// String.format("controller_platform_%s", c.name)
// ]
Expand Down Expand Up @@ -108,6 +111,7 @@ class VagrantfileGenerator {
config.vm.provision "shell", path: "«odlscriptpath»", privileged: false
config.vm.provision "shell", path: "«flscriptpath»", privileged: false
config.vm.provision "shell", path: "«toolscriptpath»", privileged: false
config.vm.provision "shell", path: "«onosscriptpath»", privileged: false
«ENDIF»

# Syncing the mininet configuration folder with the vm
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
cd
if [ ! -d ~/netide/openflowplugin ]; then
if [ ! -d ~/netide/distribution-karaf-0.4.0-Beryllium ]; then


cd netide
Expand Down
47 changes: 47 additions & 0 deletions plugins/eu.netide.configuration.launcher/scripts/install_onos.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
#!/bin/bash

if [ ! -d ~/netide/onos ]; then

if [ ! -d ~/netide/Engine ]; then
cd ~/netide
git clone https://github.com/fp7-netide/Engine.git
else
echo "Engine seems to be already installed. Skipping..."
fi

cd ~/netide/
git clone https://gerrit.onosproject.org/onos
sleep 5
git clone https://gerrit.onosproject.org/onos
cd onos
git checkout onos-1.4
mvn clean install

cd ~/netide/Engine/onos-shim
mvn clean install

sh -c 'echo "# NetIDE cell

# the address of the VM to install the package onto
export OC1=\"192.168.56.101\"

# the default address used by ONOS utilities when none are supplied
export OCI=\"192.168.56.101\"

# the ONOS apps to load at startup
export ONOS_APPS=\"drivers,openflow,proxyarp,mobility\"

# the Mininet VM (if you have one)
#export OCN=\"192.168.56.102\"

# pattern to specify which address to use for inter-ONOS node communication (not used with single-instance core)
export ONOS_NIC=\"192.168.56.*\"

export ONOS_USER=karaf
export ONOS_GROUP=karaf
export ONOS_WEB_USER=karaf
export ONOS_WEB_PASS=karaf" > ~/netide/onos/tools/test/cells/netide'

else
echo "ONOS already installed. Skipping..."
fi
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,8 @@ class SshManager implements IManager {
"scripts/install_pox.sh",
"scripts/install_odl.sh",
"scripts/install_logger_debugger.sh",
"scripts/install_floodlight.sh"
"scripts/install_floodlight.sh",
"scripts/install_onos.sh"
)

val fullScripts = newArrayList()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class DebuggerStarter extends Starter {
}

override getCommandLine() {
String.format("python ~/netide/Tools/debugger/Core/debugger.py -o ~/netide/debug_results")
String.format("bash -c \'cd ~/netide/Tools/debugger/Core/ && python ./debugger.py -o ~/netide/debug_results\'")
}

}
1 change: 1 addition & 0 deletions plugins/eu.netide.sysreq/src/eu/netide/SysReq.xtext
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Controller:
'{'
'name' ':' name=STRING ','
('version' ':' version=STRING ',')?
('port' ':' port=STRING ',')?
('entrypoint' ':' entrypoint=STRING ',')?
('features' ':' '[' features+=STRING (',' features+=STRING)* ']' ',')?
'}'
Expand Down
3 changes: 1 addition & 2 deletions releng/eu.netide.dependencies/pom.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>eu.netide.dependencies</groupId>
Expand Down