|
@ -25,6 +25,9 @@ users:
 |
|
|
ssh-authorized-keys:
 |
|
|
ssh-authorized-keys:
 |
|
|
- VIRL-USER-SSH-PUBLIC-KEY
 |
|
|
- VIRL-USER-SSH-PUBLIC-KEY
 |
|
|
sudo: ALL=(ALL) ALL
 |
|
|
sudo: ALL=(ALL) ALL
 |
|
|
|
|
|
packages:
 |
|
|
|
|
|
- joe
 |
|
|
|
|
|
- iperf
 |
|
|
write_files:
 |
|
|
write_files:
 |
|
|
- path: /etc/init/ttyS0.conf
 |
|
|
- path: /etc/init/ttyS0.conf
 |
|
|
owner: root:root
 |
|
|
owner: root:root
 |
|
@ -84,6 +87,10 @@ users:
 |
|
|
ssh-authorized-keys:
 |
|
|
ssh-authorized-keys:
 |
|
|
- VIRL-USER-SSH-PUBLIC-KEY
 |
|
|
- VIRL-USER-SSH-PUBLIC-KEY
 |
|
|
sudo: ALL=(ALL) ALL
 |
|
|
sudo: ALL=(ALL) ALL
 |
|
|
|
|
|
packages:
 |
|
|
|
|
|
- joe
 |
|
|
|
|
|
- iperf
 |
|
|
|
|
|
- apache2
 |
|
|
write_files:
 |
|
|
write_files:
 |
|
|
- path: /etc/init/ttyS0.conf
 |
|
|
- path: /etc/init/ttyS0.conf
 |
|
|
owner: root:root
 |
|
|
owner: root:root
 |
|
@ -118,7 +125,7 @@ write_files:
 |
|
|
</extensions> |
|
|
</extensions> |
|
|
<interface id="0" name="eth1" ipv4="10.0.0.5" netPrefixLenV4="30"/> |
|
|
<interface id="0" name="eth1" ipv4="10.0.0.5" netPrefixLenV4="30"/> |
|
|
</node> |
|
|
</node> |
|
|
<node name="controller" type="SIMPLE" subtype="server" location="506,54" ipv4="10.10.10.254"> |
|
|
|
|
|
|
|
|
<node name="controller" type="SIMPLE" subtype="server" location="506,54" vmFlavor="server-medium [9094074e-b640-4fd7-b296-efa4ddaca4c5]" ipv4="10.10.10.254"> |
|
|
<extensions> |
|
|
<extensions> |
|
|
<entry key="config" type="String">#cloud-config
 |
|
|
<entry key="config" type="String">#cloud-config
 |
|
|
bootcmd:
 |
|
|
bootcmd:
 |
|
@ -133,6 +140,7 @@ runcmd:
 |
|
|
- echo "UseDNS no" >> /etc/ssh/sshd_config
 |
|
|
- echo "UseDNS no" >> /etc/ssh/sshd_config
 |
|
|
- service ssh restart
 |
|
|
- service ssh restart
 |
|
|
- service sshd restart
 |
|
|
- service sshd restart
 |
|
|
|
|
|
- /tmp/install-odl
 |
|
|
users:
 |
|
|
users:
 |
|
|
- default
 |
|
|
- default
 |
|
|
- gecos: User configured by VIRL Configuration Engine 0.15.8
 |
|
|
- gecos: User configured by VIRL Configuration Engine 0.15.8
 |
|
@ -143,6 +151,11 @@ users:
 |
|
|
ssh-authorized-keys:
 |
|
|
ssh-authorized-keys:
 |
|
|
- VIRL-USER-SSH-PUBLIC-KEY
 |
|
|
- VIRL-USER-SSH-PUBLIC-KEY
 |
|
|
sudo: ALL=(ALL) ALL
 |
|
|
sudo: ALL=(ALL) ALL
 |
|
|
|
|
|
packages:
 |
|
|
|
|
|
- joe
 |
|
|
|
|
|
- iperf
 |
|
|
|
|
|
- unzip
 |
|
|
|
|
|
- openjdk-7-jre-headless
 |
|
|
write_files:
 |
|
|
write_files:
 |
|
|
- path: /etc/init/ttyS0.conf
 |
|
|
- path: /etc/init/ttyS0.conf
 |
|
|
owner: root:root
 |
|
|
owner: root:root
 |
|
@ -173,12 +186,41 @@ write_files:
 |
|
|
#!/bin/sh -e
 |
|
|
#!/bin/sh -e
 |
|
|
ifconfig eth1 up 10.10.10.254 netmask 255.255.255.0
 |
|
|
ifconfig eth1 up 10.10.10.254 netmask 255.255.255.0
 |
|
|
ifconfig eth2 up
 |
|
|
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 del -net default
 |
|
|
route add -net default gw 172.16.1.254
 |
|
|
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
 |
|
|
exit 0
 |
|
|
</entry> |
|
|
|
|
|
|
|
|
- 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</entry> |
|
|
</extensions> |
|
|
</extensions> |
|
|
<interface id="0" name="eth1" ipv4="10.0.0.13" netPrefixLenV4="30"/> |
|
|
<interface id="0" name="eth1" ipv4="10.0.0.13" netPrefixLenV4="30"/> |
|
|
<interface id="1" name="eth2"/> |
|
|
<interface id="1" name="eth2"/> |
|
@ -226,6 +268,7 @@ interface Vlan10
 |
|
|
ip address 10.10.10.253/24
 |
|
|
ip address 10.10.10.253/24
 |
|
|
!
 |
|
|
!
 |
|
|
no ip routing
 |
|
|
no ip routing
 |
|
|
|
|
|
ip route 0.0.0.0 0.0.0.0 10.10.10.254
 |
|
|
!
 |
|
|
!
 |
|
|
!
 |
|
|
!
 |
|
|
end</entry> |
|
|
end</entry> |
|
|