-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsingle-node.xml
88 lines (73 loc) · 3.35 KB
/
single-node.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
<?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>sinlge-node</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"/>
<!-- 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(single).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(single).ctrl-comp1</filetree>
<!-- Copy DevStack L2 Scenario -->
<filetree seq="create-l2" root="/home/vnx/devstack/createL2Scenario.sh" perms="777">scripts-devstack/createL2Scenario_multi-node_4nodes.sh</filetree>
<!-- Copy DevStack L3 Scenario -->
<filetree seq="create-l3" root="/home/vnx/devstack/createL3Scenario.sh" perms="777">scripts-devstack/createL3Scenario_multi-node_4nodes.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>
</vnx>