Browse Source

opendaylight deployment and config

master
Sebastian Rieger 9 years ago
parent
commit
be73aa476b
  1. 51
      GIT-VIRL-HS-Fulda/arista-sdn.virl

51
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:
</extensions>
<interface id="0" name="eth1" ipv4="10.0.0.5" netPrefixLenV4="30"/>
</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>
<entry key="config" type="String">#cloud-config&#xD;
bootcmd:&#xD;
@ -133,6 +140,7 @@ runcmd:&#xD;
- echo "UseDNS no" &gt;&gt; /etc/ssh/sshd_config&#xD;
- service ssh restart&#xD;
- service sshd restart&#xD;
- /tmp/install-odl&#xD;
users:&#xD;
- default&#xD;
- gecos: User configured by VIRL Configuration Engine 0.15.8&#xD;
@ -143,6 +151,11 @@ users:&#xD;
ssh-authorized-keys:&#xD;
- VIRL-USER-SSH-PUBLIC-KEY&#xD;
sudo: ALL=(ALL) ALL&#xD;
packages:&#xD;
- joe&#xD;
- iperf&#xD;
- unzip&#xD;
- openjdk-7-jre-headless&#xD;
write_files:&#xD;
- path: /etc/init/ttyS0.conf&#xD;
owner: root:root&#xD;
@ -173,12 +186,41 @@ write_files:&#xD;
#!/bin/sh -e&#xD;
ifconfig eth1 up 10.10.10.254 netmask 255.255.255.0&#xD;
ifconfig eth2 up&#xD;
dhclient -nw eth2&#xD;
systemctl start dhclient@eth2.service&#xD;
dhclient eth2&#xD;
# set default gateway to VIRL host in flat1 &#xD;
route del -net default&#xD;
route add -net default gw 172.16.1.254&#xD;
# enable routing and NAT for 10.10.0.0/16&#xD;
sysctl -w net.ipv4.ip_forward=1&#xD;
iptables -A POSTROUTING -t nat -s 10.10.0.0/16 -o eth2 -j MASQUERADE&#xD;
exit 0&#xD;
</entry>
- path: /tmp/install-odl&#xD;
owner: root:root&#xD;
permissions: '0755'&#xD;
content: |-&#xD;
#!/bin/sh -e&#xD;
export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/jre/&#xD;
echo "export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/jre/" &gt;/etc/profile.d/Z99-java-home.sh&#xD;
# setup opendaylight controller&#xD;
#################&#xD;
# Hydrogen&#xD;
#################&#xD;
cd /tmp&#xD;
wget http://mmnet.informatik.hs-fulda.de/distributions-base-0.1.1-osgipackage.zip&#xD;
unzip distributions-base-0.1.1-osgipackage.zip&#xD;
#################&#xD;
# Lithium&#xD;
#################&#xD;
#wget http://mmnet.informatik.hs-fulda.de/distribution-karaf-0.3.0-Lithium.tar.gz&#xD;
#tar zxf distribution-karaf-0.3.0-Lithium.tar.gz&#xD;
#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&#xD;
#./distribution-karaf-0.3.0-Lithium/bin/start&#xD;
#&#xD;
#################&#xD;
# LXDE&#xD;
#################&#xD;
# apt-get -y install midori lxde wireshark&#xD;
exit 0</entry>
</extensions>
<interface id="0" name="eth1" ipv4="10.0.0.13" netPrefixLenV4="30"/>
<interface id="1" name="eth2"/>
@ -226,6 +268,7 @@ interface Vlan10&#xD;
ip address 10.10.10.253/24&#xD;
!&#xD;
no ip routing&#xD;
ip route 0.0.0.0 0.0.0.0 10.10.10.254&#xD;
!&#xD;
!&#xD;
end</entry>

Loading…
Cancel
Save