aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/virl/topologies
diff options
context:
space:
mode:
authorCarsten Koester <ckoester@cisco.com>2016-04-10 11:51:18 -0400
committerGerrit Code Review <gerrit@fd.io>2016-04-11 12:10:43 +0000
commit5538ed5471f5de3324924534cd8e43ee7c5a58d5 (patch)
treeadb44e71ac5e15c5713898d1da7e3737ae53488d /resources/tools/virl/topologies
parentca1b17f089c77380678cb329b044072d4e373f56 (diff)
Fix cosmetic issues in VIRL topologies
Fix cosmetic issues in VIRL topologies: - Replace double whitespace by single whitespace in XML - Remove reserved but unused IP address allocations from VIRL config - Modify "start-testcase" script to handle links without IP address Change-Id: Ie447bd91172df61b30ebb8650b56bdfca0f25fd4 Signed-off-by: Carsten Koester <ckoester@cisco.com>
Diffstat (limited to 'resources/tools/virl/topologies')
-rw-r--r--resources/tools/virl/topologies/simple-ring-nested.virl17
-rw-r--r--resources/tools/virl/topologies/simple-ring.virl17
2 files changed, 14 insertions, 20 deletions
diff --git a/resources/tools/virl/topologies/simple-ring-nested.virl b/resources/tools/virl/topologies/simple-ring-nested.virl
index e1da5709cc..b2768f2205 100644
--- a/resources/tools/virl/topologies/simple-ring-nested.virl
+++ b/resources/tools/virl/topologies/simple-ring-nested.virl
@@ -67,9 +67,6 @@ write_files:&#xD;
permissions: '0755'&#xD;
content: |-&#xD;
#!/bin/sh&#xD;
- ifconfig eth1 up 10.0.0.6 netmask 255.255.255.252&#xD;
- ifconfig eth2 up 10.0.0.14 netmask 255.255.255.252&#xD;
-
grep -q nfs_server_scratch /var/lib/cloud/instance/user-data.txt || exit 1
grep -q nfs_server_common /var/lib/cloud/instance/user-data.txt || exit 1
nfs_server_scratch=$(grep -E '^nfs_server_scratch:' /var/lib/cloud/instance/user-data.txt | awk '{ print $2 }')
@@ -99,10 +96,10 @@ write_files:&#xD;
</entry>
<entry key="Auto-generate config" type="Boolean">false</entry>
</extensions>
- <interface id="0" name="eth1" ipv4="10.0.0.6" netPrefixLenV4="30"/>
- <interface id="1" name="eth2" ipv4="10.0.0.14" netPrefixLenV4="30"/>
+ <interface id="0" name="eth1"/>
+ <interface id="1" name="eth2"/>
</node>
- <node name="sut1" type="SIMPLE" subtype="vPP" location="425,26" vmImage="server-java-nested">
+ <node name="sut1" type="SIMPLE" subtype="vPP" location="425,26" vmImage="server-java-nested">
<extensions>
<entry key="config" type="string">#cloud-config
bootcmd:
@@ -195,8 +192,8 @@ write_files:
exit 0&#xD;
</entry>
</extensions>
- <interface id="0" name="GigabitEthernet0/4/0" ipv4="10.0.0.9" netPrefixLenV4="30"/>
- <interface id="1" name="GigabitEthernet0/5/0" ipv4="10.0.0.5" netPrefixLenV4="30"/>
+ <interface id="0" name="GigabitEthernet0/4/0"/>
+ <interface id="1" name="GigabitEthernet0/5/0"/>
</node>
<node name="sut2" type="SIMPLE" subtype="vPP" location="748,26" vmImage="server-java-nested">
<extensions>
@@ -291,8 +288,8 @@ write_files:
exit 0&#xD;
</entry>
</extensions>
- <interface id="0" name="GigabitEthernet0/4/0" ipv4="10.0.0.13" netPrefixLenV4="30"/>
- <interface id="1" name="GigabitEthernet0/5/0" ipv4="10.0.0.10" netPrefixLenV4="30"/>
+ <interface id="0" name="GigabitEthernet0/4/0"/>
+ <interface id="1" name="GigabitEthernet0/5/0"/>
</node>
<connection dst="/virl:topology/virl:node[1]/virl:interface[2]" src="/virl:topology/virl:node[3]/virl:interface[1]"/>
<connection dst="/virl:topology/virl:node[2]/virl:interface[2]" src="/virl:topology/virl:node[1]/virl:interface[1]"/>
diff --git a/resources/tools/virl/topologies/simple-ring.virl b/resources/tools/virl/topologies/simple-ring.virl
index 04babe5e99..82973aa745 100644
--- a/resources/tools/virl/topologies/simple-ring.virl
+++ b/resources/tools/virl/topologies/simple-ring.virl
@@ -67,9 +67,6 @@ write_files:&#xD;
permissions: '0755'&#xD;
content: |-&#xD;
#!/bin/sh&#xD;
- ifconfig eth1 up 10.0.0.6 netmask 255.255.255.252&#xD;
- ifconfig eth2 up 10.0.0.14 netmask 255.255.255.252&#xD;
-
grep -q nfs_server_scratch /var/lib/cloud/instance/user-data.txt || exit 1
grep -q nfs_server_common /var/lib/cloud/instance/user-data.txt || exit 1
nfs_server_scratch=$(grep -E '^nfs_server_scratch:' /var/lib/cloud/instance/user-data.txt | awk '{ print $2 }')
@@ -99,10 +96,10 @@ write_files:&#xD;
</entry>
<entry key="Auto-generate config" type="Boolean">false</entry>
</extensions>
- <interface id="0" name="eth1" ipv4="10.0.0.6" netPrefixLenV4="30"/>
- <interface id="1" name="eth2" ipv4="10.0.0.14" netPrefixLenV4="30"/>
+ <interface id="0" name="eth1"/>
+ <interface id="1" name="eth2"/>
</node>
- <node name="sut1" type="SIMPLE" subtype="vPP" location="425,26" vmImage="server-java">
+ <node name="sut1" type="SIMPLE" subtype="vPP" location="425,26" vmImage="server-java">
<extensions>
<entry key="config" type="string">#cloud-config
bootcmd:
@@ -195,8 +192,8 @@ write_files:
exit 0&#xD;
</entry>
</extensions>
- <interface id="0" name="GigabitEthernet0/4/0" ipv4="10.0.0.9" netPrefixLenV4="30"/>
- <interface id="1" name="GigabitEthernet0/5/0" ipv4="10.0.0.5" netPrefixLenV4="30"/>
+ <interface id="0" name="GigabitEthernet0/4/0"/>
+ <interface id="1" name="GigabitEthernet0/5/0"/>
</node>
<node name="sut2" type="SIMPLE" subtype="vPP" location="748,26" vmImage="server-java">
<extensions>
@@ -291,8 +288,8 @@ write_files:
exit 0&#xD;
</entry>
</extensions>
- <interface id="0" name="GigabitEthernet0/4/0" ipv4="10.0.0.13" netPrefixLenV4="30"/>
- <interface id="1" name="GigabitEthernet0/5/0" ipv4="10.0.0.10" netPrefixLenV4="30"/>
+ <interface id="0" name="GigabitEthernet0/4/0"/>
+ <interface id="1" name="GigabitEthernet0/5/0"/>
</node>
<connection dst="/virl:topology/virl:node[1]/virl:interface[2]" src="/virl:topology/virl:node[3]/virl:interface[1]"/>
<connection dst="/virl:topology/virl:node[2]/virl:interface[2]" src="/virl:topology/virl:node[1]/virl:interface[1]"/>