diff --git a/GIT-VIRL-HS-Fulda/arista-sdn.virl b/GIT-VIRL-HS-Fulda/arista-sdn.virl
index 51e39d0..5820327 100644
--- a/GIT-VIRL-HS-Fulda/arista-sdn.virl
+++ b/GIT-VIRL-HS-Fulda/arista-sdn.virl
@@ -25,6 +25,9 @@ users:
ssh-authorized-keys:
- VIRL-USER-SSH-PUBLIC-KEY
sudo: ALL=(ALL) ALL
+packages:
+- joe
+- iperf
write_files:
- path: /etc/init/ttyS0.conf
owner: root:root
@@ -84,6 +87,10 @@ users:
ssh-authorized-keys:
- VIRL-USER-SSH-PUBLIC-KEY
sudo: ALL=(ALL) ALL
+packages:
+- joe
+- iperf
+- apache2
write_files:
- path: /etc/init/ttyS0.conf
owner: root:root
@@ -118,7 +125,7 @@ write_files:
-
+
#cloud-config
bootcmd:
@@ -133,6 +140,7 @@ runcmd:
- echo "UseDNS no" >> /etc/ssh/sshd_config
- service ssh restart
- service sshd restart
+- /tmp/install-odl
users:
- default
- gecos: User configured by VIRL Configuration Engine 0.15.8
@@ -143,6 +151,11 @@ users:
ssh-authorized-keys:
- VIRL-USER-SSH-PUBLIC-KEY
sudo: ALL=(ALL) ALL
+packages:
+- joe
+- iperf
+- unzip
+- openjdk-7-jre-headless
write_files:
- path: /etc/init/ttyS0.conf
owner: root:root
@@ -173,12 +186,41 @@ write_files:
#!/bin/sh -e
ifconfig eth1 up 10.10.10.254 netmask 255.255.255.0
ifconfig eth2 up
- dhclient -nw eth2
- systemctl start dhclient@eth2.service
+ dhclient eth2
+ # set default gateway to VIRL host in flat1
route del -net default
route add -net default gw 172.16.1.254
+ # enable routing and NAT for 10.10.0.0/16
+ sysctl -w net.ipv4.ip_forward=1
+ iptables -A POSTROUTING -t nat -s 10.10.0.0/16 -o eth2 -j MASQUERADE
exit 0
-
+- path: /tmp/install-odl
+ owner: root:root
+ permissions: '0755'
+ content: |-
+ #!/bin/sh -e
+ export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/jre/
+ echo "export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/jre/" >/etc/profile.d/Z99-java-home.sh
+ # setup opendaylight controller
+ #################
+ # Hydrogen
+ #################
+ cd /tmp
+ wget http://mmnet.informatik.hs-fulda.de/distributions-base-0.1.1-osgipackage.zip
+ unzip distributions-base-0.1.1-osgipackage.zip
+ #################
+ # Lithium
+ #################
+ #wget http://mmnet.informatik.hs-fulda.de/distribution-karaf-0.3.0-Lithium.tar.gz
+ #tar zxf distribution-karaf-0.3.0-Lithium.tar.gz
+ #echo -e "feature:install odl-restconf odl-l2switch-switch odl-mdsal-apidocs odl-dlux-core odl-dlux-node odl-dlux-yangui\nlogout" | ./distribution-karaf-0.3.0-Lithium/bin/karaf
+ #./distribution-karaf-0.3.0-Lithium/bin/start
+ #
+ #################
+ # LXDE
+ #################
+ # apt-get -y install midori lxde wireshark
+ exit 0
@@ -226,6 +268,7 @@ interface Vlan10
ip address 10.10.10.253/24
!
no ip routing
+ip route 0.0.0.0 0.0.0.0 10.10.10.254
!
!
end