-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmulti-node_3nodes.xml
146 lines (119 loc) · 5.45 KB
/
multi-node_3nodes.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<?xml version="1.0" encoding="UTF-8"?>
<!--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
STUDY OF SOTWARE-DEFINED NETWORKING
THROUGH THE DEVELOPMENT OF VIRTUAL SCENARIOS
BASED ON THE OPENDAYLIGHT CONTROLLER
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Author: Raúl Álvarez Pinilla
Tutor: David Fernández Cambronero
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Telematics Engineering Department (DIT)
Technical University of Madrid (UPM)
SPAIN
-->
<vnx xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="/usr/share/xml/vnx/vnx-2.00.xsd">
<global>
<version>2.0</version>
<scenario_name>multi-node_3nodes</scenario_name>
<automac/>
<vm_mgmt type="none" />
<vm_defaults>
<console id="0" display="no"/>
<console id="1" display="yes"/>
</vm_defaults>
<cmd-seq seq='start-no-odl'>conf-no-odl,stack</cmd-seq>
<cmd-seq seq='start-odl-l2'>start-odl,conf-odl-l2,stack</cmd-seq>
<cmd-seq seq='start-odl-l3'>start-odl,conf-odl-l3,stack</cmd-seq>
<cmd-seq seq='stop'>unstack,stop-odl</cmd-seq>
</global>
<!-- NET DEFINITION -->
<!-- virbr0 (192.168.122.0/24) -->
<net name="virbr0" mode="virtual_bridge" managed="no"/>
<!-- internal (10.0.0.0/24) -->
<net name="internal" mode="virtual_bridge"/>
<!-- OPENDAYLIGHT NODE -->
<vm name="odl" type="libvirt" subtype="kvm" os="linux" exec_mode="sdisk" arch="x86_64" vcpu="8">
<filesystem type="cow">filesystems/devstack_odl_ovs_KILO.qcow2</filesystem>
<mem>4G</mem>
<if id="1" net="virbr0">
<ipv4>dhcp,192.168.122.10</ipv4>
</if>
<if id="2" net="internal">
<ipv4>10.0.0.10/24</ipv4>
</if>
<!-- Start OpenDaylight -->
<exec seq="start-odl" type="verbatim" ostype="system">
echo "\nStarting OpenDaylight..." > /dev/ttyS0;
/home/vnx/opendaylight/distribution-karaf-0.2.4-SNAPSHOT/bin/start;
</exec>
<!-- Stop OpenDaylight -->
<exec seq="stop-odl" type="verbatim" ostype="system">
echo "\nStopping OpenDaylight..." > /dev/ttyS0;
/home/vnx/opendaylight/distribution-karaf-0.2.4-SNAPSHOT/bin/stop;
</exec>
</vm>
<!-- CONTROLLER NODE (Controller + Network + Compute1) -->
<vm name="ctrl-comp1" type="libvirt" subtype="kvm" os="linux" exec_mode="sdisk" arch="x86_64" vcpu="8">
<filesystem type="cow">filesystems/devstack_odl_ovs_KILO.qcow2</filesystem>
<mem>4G</mem>
<if id="1" net="virbr0">
<ipv4>dhcp,192.168.122.11</ipv4>
</if>
<if id="2" net="internal">
<ipv4>10.0.0.11/24</ipv4>
</if>
<!-- Copy DevStack configuration (DevStack, without OpenDaylight)-->
<filetree seq="conf-no-odl" root="/home/vnx/devstack/local.conf" perms="644">conf/no-odl/local.conf.ctrl-comp1</filetree>
<!-- Copy DevStack configuration (DevStack with OpenDaylight [L2 services])-->
<filetree seq="conf-odl-l2" root="/home/vnx/devstack/local.conf" perms="644">conf/odl-l2/local.conf.ctrl-comp1</filetree>
<!-- Copy DevStack configuration (DevStack with OpenDaylight [L2 & L3 services])-->
<filetree seq="conf-odl-l3" root="/home/vnx/devstack/local.conf" perms="644">conf/odl-l3/local.conf.ctrl-comp1</filetree>
<!-- Copy DevStack L2 Scenario -->
<filetree seq="create-l2" root="/home/vnx/devstack/createL2Scenario.sh" perms="777">scripts-devstack/createL2Scenario_multi-node_3nodes.sh</filetree>
<!-- Copy DevStack L3 Scenario -->
<filetree seq="create-l3" root="/home/vnx/devstack/createL3Scenario.sh" perms="777">scripts-devstack/createL3Scenario_multi-node_3nodes.sh</filetree>
<!-- Start DevStack -->
<exec seq="stack" type="verbatim" ostype="system">
su vnx -c "/home/vnx/devstack/stack.sh" > /dev/ttyS0;
</exec>
<!-- Stop DevStack -->
<exec seq="unstack" type="verbatim" ostype="system">
su vnx -c "/home/vnx/devstack/unstack.sh > /dev/ttyS0";
</exec>
<!-- Create DevStack L2 Scenario-->
<exec seq="create-l3" type="verbatim" ostype="system">
/home/vnx/devstack/createL2Scenario.sh > /dev/ttyS0;
</exec>
<!-- Create DevStack L3 Scenario-->
<exec seq="create-l3" type="verbatim" ostype="system">
/home/vnx/devstack/createL3Scenario.sh > /dev/ttyS0;
</exec>
</vm>
<!-- COMPUTE NODE (Compute2)-->
<vm name="comp2" type="libvirt" subtype="kvm" os="linux" exec_mode="sdisk" arch="x86_64" vcpu="8">
<filesystem type="cow">filesystems/devstack_odl_ovs_KILO.qcow2</filesystem>
<mem>2G</mem>
<if id="1" net="virbr0">
<ipv4>dhcp,192.168.122.12</ipv4>
</if>
<if id="2" net="internal">
<ipv4>10.0.0.12/24</ipv4>
</if>
<!-- Copy DevStack configuration (DevStack, without OpenDaylight)-->
<filetree seq="conf-no-odl" root="/home/vnx/devstack/local.conf" perms="644">conf/no-odl/local.conf.comp2</filetree>
<!-- Copy DevStack configuration (DevStack with OpenDaylight [L2 services])-->
<filetree seq="conf-odl-l2" root="/home/vnx/devstack/local.conf" perms="644">conf/odl-l2/local.conf.comp2</filetree>
<!-- Copy DevStack configuration (DevStack with OpenDaylight [L2 & L3 services])-->
<filetree seq="conf-odl-l3" root="/home/vnx/devstack/local.conf" perms="644">conf/odl-l3/local.conf.comp2</filetree>
<!-- Start DevStack -->
<exec seq="stack" type="verbatim" ostype="system">
su vnx -c "/home/vnx/devstack/stack.sh > /dev/ttyS0";
</exec>
<!-- Stop DevStack -->
<exec seq="unstack" type="verbatim" ostype="system">
su vnx -c "/home/vnx/devstack/unstack.sh > /dev/ttyS0";
</exec>
</vm>
</vnx>