blob: 6ff8f439105b5ebf2ca8e951d43d2a5fc17cc7f5 [file] [log] [blame]
Jon Halla1cdd892015-08-10 13:36:28 -07001<?xml version="1.0" encoding="ascii"?>
2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3 "DTD/xhtml1-transitional.dtd">
4<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5<head>
6 <title>TestON.tests.HAclusterRestart.dependencies.obelisk</title>
7 <link rel="stylesheet" href="epydoc.css" type="text/css" />
8 <script type="text/javascript" src="epydoc.js"></script>
9</head>
10
11<body bgcolor="white" text="black" link="blue" vlink="#204080"
12 alink="#204080">
13<!-- ==================== NAVIGATION BAR ==================== -->
14<table class="navbar" border="0" width="100%" cellpadding="0"
15 bgcolor="#a0c0ff" cellspacing="0">
16 <tr valign="middle">
17 <!-- Home link -->
18 <th>&nbsp;&nbsp;&nbsp;<a
19 href="TestON-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>
20
21 <!-- Tree link -->
22 <th>&nbsp;&nbsp;&nbsp;<a
23 href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>
24
25 <!-- Index link -->
26 <th>&nbsp;&nbsp;&nbsp;<a
27 href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>
28
29 <!-- Help link -->
30 <th>&nbsp;&nbsp;&nbsp;<a
31 href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>
32
33 <!-- Project homepage -->
34 <th class="navbar" align="right" width="100%">
35 <table border="0" cellpadding="0" cellspacing="0">
36 <tr><th class="navbar" align="center"
37 >TestON</th>
38 </tr></table></th>
39 </tr>
40</table>
41<table width="100%" cellpadding="0" cellspacing="0">
42 <tr valign="top">
43 <td width="100%">
44 <span class="breadcrumbs">
45 <a href="TestON-module.html">Package&nbsp;TestON</a> ::
46 <a href="TestON.tests-module.html">Package&nbsp;tests</a> ::
47 <a href="TestON.tests.HAclusterRestart-module.html">Package&nbsp;HAclusterRestart</a> ::
48 <a href="TestON.tests.HAclusterRestart.dependencies-module.html">Package&nbsp;dependencies</a> ::
49 Module&nbsp;obelisk
50 </span>
51 </td>
52 <td>
53 <table cellpadding="0" cellspacing="0">
54 <!-- hide/show private -->
55 <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
56 onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
57 <tr><td align="right"><span class="options"
58 >[<a href="frames.html" target="_top">frames</a
59 >]&nbsp;|&nbsp;<a href="TestON.tests.HAclusterRestart.dependencies.obelisk-pysrc.html"
60 target="_top">no&nbsp;frames</a>]</span></td></tr>
61 </table>
62 </td>
63 </tr>
64</table>
65<h1 class="epydoc">Source Code for <a href="TestON.tests.HAclusterRestart.dependencies.obelisk-module.html">Module TestON.tests.HAclusterRestart.dependencies.obelisk</a></h1>
66<pre class="py-src">
67<a name="L1"></a><tt class="py-lineno"> 1</tt> <tt class="py-line"><tt class="py-comment">#!/usr/bin/env python</tt> </tt>
68<a name="L2"></a><tt class="py-lineno"> 2</tt> <tt class="py-line"> </tt>
69<a name="L3"></a><tt class="py-lineno"> 3</tt> <tt class="py-line"><tt class="py-keyword">from</tt> <tt class="py-name">mininet</tt><tt class="py-op">.</tt><tt class="py-name">topo</tt> <tt class="py-keyword">import</tt> <tt class="py-name">Topo</tt> </tt>
70<a name="L4"></a><tt class="py-lineno"> 4</tt> <tt class="py-line"> </tt>
71<a name="ObeliskTopo"></a><div id="ObeliskTopo-def"><a name="L5"></a><tt class="py-lineno"> 5</tt> <a class="py-toggle" href="#" id="ObeliskTopo-toggle" onclick="return toggle('ObeliskTopo');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="TestON.tests.HAclusterRestart.dependencies.obelisk.ObeliskTopo-class.html">ObeliskTopo</a><tt class="py-op">(</tt> <tt class="py-base-class">Topo</tt> <tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
72</div><div id="ObeliskTopo-collapsed" style="display:none;" pad="++" indent="++++"></div><div id="ObeliskTopo-expanded"><a name="ObeliskTopo.__init__"></a><div id="ObeliskTopo.__init__-def"><a name="L6"></a><tt class="py-lineno"> 6</tt> <a class="py-toggle" href="#" id="ObeliskTopo.__init__-toggle" onclick="return toggle('ObeliskTopo.__init__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="TestON.tests.HAclusterRestart.dependencies.obelisk.ObeliskTopo-class.html#__init__">__init__</a><tt class="py-op">(</tt> <tt class="py-param">self</tt> <tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
73</div><div id="ObeliskTopo.__init__-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="ObeliskTopo.__init__-expanded"><a name="L7"></a><tt class="py-lineno"> 7</tt> <tt class="py-line"> <tt class="py-name">Topo</tt><tt class="py-op">.</tt><tt id="link-0" class="py-name" targets="Method TestON.bin.cli.CLI.__init__()=TestON.bin.cli.CLI-class.html#__init__,Method TestON.bin.cli.TestThread.__init__()=TestON.bin.cli.TestThread-class.html#__init__,Method TestON.bin.generatedriver.GenerateDriver.__init__()=TestON.bin.generatedriver.GenerateDriver-class.html#__init__,Method TestON.bin.nec.NEC.__init__()=TestON.bin.nec.NEC-class.html#__init__,Method TestON.bin.updatedriver.UpdateDriver.__init__()=TestON.bin.updatedriver.UpdateDriver-class.html#__init__,Method TestON.bin.vyatta.Vyatta.__init__()=TestON.bin.vyatta.Vyatta-class.html#__init__,Method TestON.core.Thread.Thread.__init__()=TestON.core.Thread.Thread-class.html#__init__,Method TestON.core.dicttoobject.DictToObject.__init__()=TestON.core.dicttoobject.DictToObject-class.html#__init__,Method TestON.core.iniparser.iniparser.__init__()=TestON.core.iniparser.iniparser-class.html#__init__,Method TestON.core.jsonparser.JsonParser.__init__()=TestON.core.jsonparser.JsonParser-class.html#__init__,Method TestON.core.openspeak.OpenSpeak.__init__()=TestON.core.openspeak.OpenSpeak-class.html#__init__,Method TestON.core.teston.TestON.__init__()=TestON.core.teston.TestON-class.html#__init__,Method TestON.core.testparser.TestParser.__init__()=TestON.core.testparser.TestParser-class.html#__init__,Method TestON.core.xmlparser.xmlparser.__init__()=TestON.core.xmlparser.xmlparser-class.html#__init__,Method TestON.drivers.common.api.controller.onosrestdriver.OnosRestDriver.__init__()=TestON.drivers.common.api.controller.onosrestdriver.OnosRestDriver-class.html#__init__,Method TestON.drivers.common.api.controllerdriver.Controller.__init__()=TestON.drivers.common.api.controllerdriver.Controller-class.html#__init__,Method TestON.drivers.common.api.fvtapidriver.FvtApiDriver.__init__()=TestON.drivers.common.api.fvtapidriver.FvtApiDriver-class.html#__init__,Method TestON.drivers.common.apidriver.API.__init__()=TestON.drivers.common.apidriver.API-class.html#__init__,Method TestON.drivers.common.cli.dpclidriver.DPCliDriver.__init__()=TestON.drivers.common.cli.dpclidriver.DPCliDriver-class.html#__init__,Method TestON.drivers.common.cli.emulator.flowvisordriver.FlowVisorDriver.__init__()=TestON.drivers.common.cli.emulator.flowvisordriver.FlowVisorDriver-class.html#__init__,Method TestON.drivers.common.cli.emulator.lincoedriver.LincOEDriver.__init__()=TestON.drivers.common.cli.emulator.lincoedriver.LincOEDriver-class.html#__init__,Method TestON.drivers.common.cli.emulator.mininetclidriver.MininetCliDriver.__init__()=TestON.drivers.common.cli.emulator.mininetclidriver.MininetCliDriver-class.html#__init__,Method TestON.drivers.common.cli.emulator.poxclidriver.PoxCliDriver.__init__()=TestON.drivers.common.cli.emulator.poxclidriver.PoxCliDriver-class.html#__init__,Method TestON.drivers.common.cli.emulator.remotemininetdriver.RemoteMininetDriver.__init__()=TestON.drivers.common.cli.emulator.remotemininetdriver.RemoteMininetDriver-class.html#__init__,Method TestON.drivers.common.cli.emulatordriver.Emulator.__init__()=TestON.drivers.common.cli.emulatordriver.Emulator-class.html#__init__,Method TestON.drivers.common.cli.onosclidriver.OnosCliDriver.__init__()=TestON.drivers.common.cli.onosclidriver.OnosCliDriver-class.html#__init__,Method TestON.drivers.common.cli.onosdriver.OnosDriver.__init__()=TestON.drivers.common.cli.onosdriver.OnosDriver-class.html#__init__,Method TestON.drivers.common.cli.quaggaclidriver.QuaggaCliDriver.__init__()=TestON.drivers.common.cli.quaggaclidriver.QuaggaCliDriver-class.html#__init__,Method TestON.drivers.common.cli.remotesysdriver.RemoteSysDriver.__init__()=TestON.drivers.common.cli.remotesysdriver.RemoteSysDriver-class.html#__init__,Method TestON.drivers.common.cli.remotetestbed.floodlightclidriver.FloodLightCliDriver.__init__()=TestON.drivers.common.cli.remotetestbed.floodlightclidriver.FloodLightCliDriver-class.html#__init__,Method TestON.drivers.common.cli.remotetestbed.necswitchdriver.NEC.__init__()=TestON.drivers.common.cli.remotetestbed.necswitchdriver.NEC-class.html#__init__,Method TestON.drivers.common.cli.remotetestbed.remotepoxdriver.RemotePoxDriver.__init__()=TestON.drivers.common.cli.remotetestbed.remotepoxdriver.RemotePoxDriver-class.html#__init__,Method TestON.drivers.common.cli.remotetestbed.remotevmdriver.RemoteVMDriver.__init__()=TestON.drivers.common.cli.remotetestbed.remotevmdriver.RemoteVMDriver-class.html#__init__,Method TestON.drivers.common.cli.remotetestbeddriver.RemoteTestBedDriver.__init__()=TestON.drivers.common.cli.remotetestbeddriver.RemoteTestBedDriver-class.html#__init__,Method TestON.drivers.common.cli.tool.dpctlclidriver.DpctlCliDriver.__init__()=TestON.drivers.common.cli.tool.dpctlclidriver.DpctlCliDriver-class.html#__init__,Method TestON.drivers.common.cli.toolsdriver.Tools.__init__()=TestON.drivers.common.cli.toolsdriver.Tools-class.html#__init__,Method TestON.drivers.common.clidriver.CLI.__init__()=TestON.drivers.common.clidriver.CLI-class.html#__init__,Method TestON.examples.Assert.Assert.Assert.__init__()=TestON.examples.Assert.Assert.Assert-class.html#__init__,Method TestON.examples.CaseParams.CaseParams.CaseParams.__init__()=TestON.examples.CaseParams.CaseParams.CaseParams-class.html#__init__,Method TestON.examples.ExperimentTest.ExperimentTest.ExperimentTest.__init__()=TestON.examples.ExperimentTest.ExperimentTest.ExperimentTest-class.html#__init__,Method TestON.examples.StepParams.StepParams.StepParams.__init__()=TestON.examples.StepParams.StepParams.StepParams-class.html#__init__,Method TestON.examples.Topology.Topology.Topology.__init__()=TestON.examples.Topology.Topology.Topology-class.html#__init__,Method TestON.tests.CHOtest.CHOtest.CHOtest.__init__()=TestON.tests.CHOtest.CHOtest.CHOtest-class.html#__init__,Method TestON.tests.FUNCintent.FUNCintent.FUNCintent.__init__()=TestON.tests.FUNCintent.FUNCintent.FUNCintent-class.html#__init__,Method TestON.tests.HAclusterRestart.HAclusterRestart.HAclusterRestart.__init__()=TestON.tests.HAclusterRestart.HAclusterRestart.HAclusterRestart-class.html#__init__,Function TestON.tests.HAclusterRestart.dependencies.Counters.__init__()=TestON.tests.HAclusterRestart.dependencies.Counters-module.html#__init__,Method TestON.tests.HAclusterRestart.dependencies.obelisk.ObeliskTopo.__init__()=TestON.tests.HAclusterRestart.dependencies.obelisk.ObeliskTopo-class.html#__init__,Method TestON.tests.HAminorityRestart.HAminorityRestart.HAminorityRestart.__init__()=TestON.tests.HAminorityRestart.HAminorityRestart.HAminorityRestart-class.html#__init__,Function TestON.tests.HAminorityRestart.dependencies.Counters.__init__()=TestON.tests.HAminorityRestart.dependencies.Counters-module.html#__init__,Method TestON.tests.HAminorityRestart.dependencies.obelisk.ObeliskTopo.__init__()=TestON.tests.HAminorityRestart.dependencies.obelisk.ObeliskTopo-class.html#__init__,Method TestON.tests.HAsanity.HAsanity.HAsanity.__init__()=TestON.tests.HAsanity.HAsanity.HAsanity-class.html#__init__,Function TestON.tests.HAsanity.dependencies.Counters.__init__()=TestON.tests.HAsanity.dependencies.Counters-module.html#__init__,Method TestON.tests.HAsanity.dependencies.obelisk.ObeliskTopo.__init__()=TestON.tests.HAsanity.dependencies.obelisk.ObeliskTopo-class.html#__init__,Method TestON.tests.HAsingleInstanceRestart.HAsingleInstanceRestart.HAsingleInstanceRestart.__init__()=TestON.tests.HAsingleInstanceRestart.HAsingleInstanceRestart.HAsingleInstanceRestart-class.html#__init__,Function TestON.tests.HAsingleInstanceRestart.dependencies.Counters.__init__()=TestON.tests.HAsingleInstanceRestart.dependencies.Counters-module.html#__init__,Method TestON.tests.HAsingleInstanceRestart.dependencies.obelisk.ObeliskTopo.__init__()=TestON.tests.HAsingleInstanceRestart.dependencies.obelisk.ObeliskTopo-class.html#__init__,Method TestON.tests.SAMPscaleTopo.SAMPscaleTopo.SAMPscaleTopo.__init__()=TestON.tests.SAMPscaleTopo.SAMPscaleTopo.SAMPscaleTopo-class.html#__init__,Method TestON.tests.SAMPstartTemplate.SAMPstartTemplate.SAMPstartTemplate.__init__()=TestON.tests.SAMPstartTemplate.SAMPstartTemplate.SAMPstartTemplate-class.html#__init__,Method TestON.tests.SCPFcbench.SCPFcbench.SCPFcbench.__init__()=TestON.tests.SCPFcbench.SCPFcbench.SCPFcbench-class.html#__init__,Method TestON.tests.SCPFflowTp1g.SCPFflowTp1g.SCPFflowTp1g.__init__()=TestON.tests.SCPFflowTp1g.SCPFflowTp1g.SCPFflowTp1g-class.html#__init__,Method TestON.tests.SCPFintentEventTp.SCPFintentEventTp.SCPFintentEventTp.__init__()=TestON.tests.SCPFintentEventTp.SCPFintentEventTp.SCPFintentEventTp-class.html#__init__,Method TestON.tests.SCPFintentInstallWithdrawLat.SCPFintentInstallWithdrawLat.SCPFintentInstallWithdrawLat.__init__()=TestON.tests.SCPFintentInstallWithdrawLat.SCPFintentInstallWithdrawLat.SCPFintentInstallWithdrawLat-class.html#__init__,Method TestON.tests.SCPFintentRerouteLat.SCPFintentRerouteLat.SCPFintentRerouteLat.__init__()=TestON.tests.SCPFintentRerouteLat.SCPFintentRerouteLat.SCPFintentRerouteLat-class.html#__init__,Method TestON.tests.SCPFportLat.SCPFportLat.SCPFportLat.__init__()=TestON.tests.SCPFportLat.SCPFportLat.SCPFportLat-class.html#__init__,Method TestON.tests.SCPFswitchLat.SCPFswitchLat.SCPFswitchLat.__init__()=TestON.tests.SCPFswitchLat.SCPFswitchLat.SCPFswitchLat-class.html#__init__"><a title="TestON.bin.cli.CLI.__init__
74TestON.bin.cli.TestThread.__init__
75TestON.bin.generatedriver.GenerateDriver.__init__
76TestON.bin.nec.NEC.__init__
77TestON.bin.updatedriver.UpdateDriver.__init__
78TestON.bin.vyatta.Vyatta.__init__
79TestON.core.Thread.Thread.__init__
80TestON.core.dicttoobject.DictToObject.__init__
81TestON.core.iniparser.iniparser.__init__
82TestON.core.jsonparser.JsonParser.__init__
83TestON.core.openspeak.OpenSpeak.__init__
84TestON.core.teston.TestON.__init__
85TestON.core.testparser.TestParser.__init__
86TestON.core.xmlparser.xmlparser.__init__
87TestON.drivers.common.api.controller.onosrestdriver.OnosRestDriver.__init__
88TestON.drivers.common.api.controllerdriver.Controller.__init__
89TestON.drivers.common.api.fvtapidriver.FvtApiDriver.__init__
90TestON.drivers.common.apidriver.API.__init__
91TestON.drivers.common.cli.dpclidriver.DPCliDriver.__init__
92TestON.drivers.common.cli.emulator.flowvisordriver.FlowVisorDriver.__init__
93TestON.drivers.common.cli.emulator.lincoedriver.LincOEDriver.__init__
94TestON.drivers.common.cli.emulator.mininetclidriver.MininetCliDriver.__init__
95TestON.drivers.common.cli.emulator.poxclidriver.PoxCliDriver.__init__
96TestON.drivers.common.cli.emulator.remotemininetdriver.RemoteMininetDriver.__init__
97TestON.drivers.common.cli.emulatordriver.Emulator.__init__
98TestON.drivers.common.cli.onosclidriver.OnosCliDriver.__init__
99TestON.drivers.common.cli.onosdriver.OnosDriver.__init__
100TestON.drivers.common.cli.quaggaclidriver.QuaggaCliDriver.__init__
101TestON.drivers.common.cli.remotesysdriver.RemoteSysDriver.__init__
102TestON.drivers.common.cli.remotetestbed.floodlightclidriver.FloodLightCliDriver.__init__
103TestON.drivers.common.cli.remotetestbed.necswitchdriver.NEC.__init__
104TestON.drivers.common.cli.remotetestbed.remotepoxdriver.RemotePoxDriver.__init__
105TestON.drivers.common.cli.remotetestbed.remotevmdriver.RemoteVMDriver.__init__
106TestON.drivers.common.cli.remotetestbeddriver.RemoteTestBedDriver.__init__
107TestON.drivers.common.cli.tool.dpctlclidriver.DpctlCliDriver.__init__
108TestON.drivers.common.cli.toolsdriver.Tools.__init__
109TestON.drivers.common.clidriver.CLI.__init__
110TestON.examples.Assert.Assert.Assert.__init__
111TestON.examples.CaseParams.CaseParams.CaseParams.__init__
112TestON.examples.ExperimentTest.ExperimentTest.ExperimentTest.__init__
113TestON.examples.StepParams.StepParams.StepParams.__init__
114TestON.examples.Topology.Topology.Topology.__init__
115TestON.tests.CHOtest.CHOtest.CHOtest.__init__
116TestON.tests.FUNCintent.FUNCintent.FUNCintent.__init__
117TestON.tests.HAclusterRestart.HAclusterRestart.HAclusterRestart.__init__
118TestON.tests.HAclusterRestart.dependencies.Counters.__init__
119TestON.tests.HAclusterRestart.dependencies.obelisk.ObeliskTopo.__init__
120TestON.tests.HAminorityRestart.HAminorityRestart.HAminorityRestart.__init__
121TestON.tests.HAminorityRestart.dependencies.Counters.__init__
122TestON.tests.HAminorityRestart.dependencies.obelisk.ObeliskTopo.__init__
123TestON.tests.HAsanity.HAsanity.HAsanity.__init__
124TestON.tests.HAsanity.dependencies.Counters.__init__
125TestON.tests.HAsanity.dependencies.obelisk.ObeliskTopo.__init__
126TestON.tests.HAsingleInstanceRestart.HAsingleInstanceRestart.HAsingleInstanceRestart.__init__
127TestON.tests.HAsingleInstanceRestart.dependencies.Counters.__init__
128TestON.tests.HAsingleInstanceRestart.dependencies.obelisk.ObeliskTopo.__init__
129TestON.tests.SAMPscaleTopo.SAMPscaleTopo.SAMPscaleTopo.__init__
130TestON.tests.SAMPstartTemplate.SAMPstartTemplate.SAMPstartTemplate.__init__
131TestON.tests.SCPFcbench.SCPFcbench.SCPFcbench.__init__
132TestON.tests.SCPFflowTp1g.SCPFflowTp1g.SCPFflowTp1g.__init__
133TestON.tests.SCPFintentEventTp.SCPFintentEventTp.SCPFintentEventTp.__init__
134TestON.tests.SCPFintentInstallWithdrawLat.SCPFintentInstallWithdrawLat.SCPFintentInstallWithdrawLat.__init__
135TestON.tests.SCPFintentRerouteLat.SCPFintentRerouteLat.SCPFintentRerouteLat.__init__
136TestON.tests.SCPFportLat.SCPFportLat.SCPFportLat.__init__
137TestON.tests.SCPFswitchLat.SCPFswitchLat.SCPFswitchLat.__init__" class="py-name" href="#" onclick="return doclink('link-0', '__init__', 'link-0');">__init__</a></tt><tt class="py-op">(</tt> <tt class="py-name">self</tt> <tt class="py-op">)</tt> </tt>
138<a name="L8"></a><tt class="py-lineno"> 8</tt> <tt class="py-line"> <tt class="py-name">topSwitch</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-1" class="py-name" targets="Method TestON.drivers.common.cli.emulator.mininetclidriver.MininetCliDriver.addSwitch()=TestON.drivers.common.cli.emulator.mininetclidriver.MininetCliDriver-class.html#addSwitch"><a title="TestON.drivers.common.cli.emulator.mininetclidriver.MininetCliDriver.addSwitch" class="py-name" href="#" onclick="return doclink('link-1', 'addSwitch', 'link-1');">addSwitch</a></tt><tt class="py-op">(</tt><tt class="py-string">'s1'</tt><tt class="py-op">,</tt><tt class="py-name">dpid</tt><tt class="py-op">=</tt><tt class="py-string">'1000'</tt><tt class="py-op">.</tt><tt class="py-name">zfill</tt><tt class="py-op">(</tt><tt class="py-number">16</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
139<a name="L9"></a><tt class="py-lineno"> 9</tt> <tt class="py-line"> <tt class="py-name">leftTopSwitch</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-2" class="py-name"><a title="TestON.drivers.common.cli.emulator.mininetclidriver.MininetCliDriver.addSwitch" class="py-name" href="#" onclick="return doclink('link-2', 'addSwitch', 'link-1');">addSwitch</a></tt><tt class="py-op">(</tt><tt class="py-string">'s2'</tt><tt class="py-op">,</tt><tt class="py-name">dpid</tt><tt class="py-op">=</tt><tt class="py-string">'2000'</tt><tt class="py-op">.</tt><tt class="py-name">zfill</tt><tt class="py-op">(</tt><tt class="py-number">16</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
140<a name="L10"></a><tt class="py-lineno">10</tt> <tt class="py-line"> <tt class="py-name">rightTopSwitch</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-3" class="py-name"><a title="TestON.drivers.common.cli.emulator.mininetclidriver.MininetCliDriver.addSwitch" class="py-name" href="#" onclick="return doclink('link-3', 'addSwitch', 'link-1');">addSwitch</a></tt><tt class="py-op">(</tt><tt class="py-string">'s5'</tt><tt class="py-op">,</tt><tt class="py-name">dpid</tt><tt class="py-op">=</tt><tt class="py-string">'5000'</tt><tt class="py-op">.</tt><tt class="py-name">zfill</tt><tt class="py-op">(</tt><tt class="py-number">16</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
141<a name="L11"></a><tt class="py-lineno">11</tt> <tt class="py-line"> <tt class="py-name">leftBotSwitch</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-4" class="py-name"><a title="TestON.drivers.common.cli.emulator.mininetclidriver.MininetCliDriver.addSwitch" class="py-name" href="#" onclick="return doclink('link-4', 'addSwitch', 'link-1');">addSwitch</a></tt><tt class="py-op">(</tt><tt class="py-string">'s3'</tt><tt class="py-op">,</tt><tt class="py-name">dpid</tt><tt class="py-op">=</tt><tt class="py-string">'3000'</tt><tt class="py-op">.</tt><tt class="py-name">zfill</tt><tt class="py-op">(</tt><tt class="py-number">16</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
142<a name="L12"></a><tt class="py-lineno">12</tt> <tt class="py-line"> <tt class="py-name">rightBotSwitch</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-5" class="py-name"><a title="TestON.drivers.common.cli.emulator.mininetclidriver.MininetCliDriver.addSwitch" class="py-name" href="#" onclick="return doclink('link-5', 'addSwitch', 'link-1');">addSwitch</a></tt><tt class="py-op">(</tt><tt class="py-string">'s6'</tt><tt class="py-op">,</tt><tt class="py-name">dpid</tt><tt class="py-op">=</tt><tt class="py-string">'6000'</tt><tt class="py-op">.</tt><tt class="py-name">zfill</tt><tt class="py-op">(</tt><tt class="py-number">16</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
143<a name="L13"></a><tt class="py-lineno">13</tt> <tt class="py-line"> <tt class="py-name">midBotSwitch</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-6" class="py-name"><a title="TestON.drivers.common.cli.emulator.mininetclidriver.MininetCliDriver.addSwitch" class="py-name" href="#" onclick="return doclink('link-6', 'addSwitch', 'link-1');">addSwitch</a></tt><tt class="py-op">(</tt><tt class="py-string">'s28'</tt><tt class="py-op">,</tt><tt class="py-name">dpid</tt><tt class="py-op">=</tt><tt class="py-string">'2800'</tt><tt class="py-op">.</tt><tt class="py-name">zfill</tt><tt class="py-op">(</tt><tt class="py-number">16</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
144<a name="L14"></a><tt class="py-lineno">14</tt> <tt class="py-line"> </tt>
145<a name="L15"></a><tt class="py-lineno">15</tt> <tt class="py-line"> <tt class="py-name">topHost</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-7" class="py-name" targets="Method TestON.drivers.common.cli.emulator.mininetclidriver.MininetCliDriver.addHost()=TestON.drivers.common.cli.emulator.mininetclidriver.MininetCliDriver-class.html#addHost"><a title="TestON.drivers.common.cli.emulator.mininetclidriver.MininetCliDriver.addHost" class="py-name" href="#" onclick="return doclink('link-7', 'addHost', 'link-7');">addHost</a></tt><tt class="py-op">(</tt> <tt class="py-string">'h1'</tt> <tt class="py-op">)</tt> </tt>
146<a name="L16"></a><tt class="py-lineno">16</tt> <tt class="py-line"> <tt class="py-name">leftTopHost</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-8" class="py-name"><a title="TestON.drivers.common.cli.emulator.mininetclidriver.MininetCliDriver.addHost" class="py-name" href="#" onclick="return doclink('link-8', 'addHost', 'link-7');">addHost</a></tt><tt class="py-op">(</tt><tt class="py-string">'h2'</tt><tt class="py-op">)</tt> </tt>
147<a name="L17"></a><tt class="py-lineno">17</tt> <tt class="py-line"> <tt class="py-name">rightTopHost</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-9" class="py-name"><a title="TestON.drivers.common.cli.emulator.mininetclidriver.MininetCliDriver.addHost" class="py-name" href="#" onclick="return doclink('link-9', 'addHost', 'link-7');">addHost</a></tt><tt class="py-op">(</tt><tt class="py-string">'h5'</tt><tt class="py-op">)</tt> </tt>
148<a name="L18"></a><tt class="py-lineno">18</tt> <tt class="py-line"> <tt class="py-name">leftBotHost</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-10" class="py-name"><a title="TestON.drivers.common.cli.emulator.mininetclidriver.MininetCliDriver.addHost" class="py-name" href="#" onclick="return doclink('link-10', 'addHost', 'link-7');">addHost</a></tt><tt class="py-op">(</tt><tt class="py-string">'h3'</tt><tt class="py-op">)</tt> </tt>
149<a name="L19"></a><tt class="py-lineno">19</tt> <tt class="py-line"> <tt class="py-name">rightBotHost</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-11" class="py-name"><a title="TestON.drivers.common.cli.emulator.mininetclidriver.MininetCliDriver.addHost" class="py-name" href="#" onclick="return doclink('link-11', 'addHost', 'link-7');">addHost</a></tt><tt class="py-op">(</tt><tt class="py-string">'h6'</tt><tt class="py-op">)</tt> </tt>
150<a name="L20"></a><tt class="py-lineno">20</tt> <tt class="py-line"> <tt class="py-name">midBotHost</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-12" class="py-name"><a title="TestON.drivers.common.cli.emulator.mininetclidriver.MininetCliDriver.addHost" class="py-name" href="#" onclick="return doclink('link-12', 'addHost', 'link-7');">addHost</a></tt><tt class="py-op">(</tt><tt class="py-string">'h28'</tt><tt class="py-op">)</tt> </tt>
151<a name="L21"></a><tt class="py-lineno">21</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-13" class="py-name" targets="Method TestON.drivers.common.cli.emulator.mininetclidriver.MininetCliDriver.addLink()=TestON.drivers.common.cli.emulator.mininetclidriver.MininetCliDriver-class.html#addLink"><a title="TestON.drivers.common.cli.emulator.mininetclidriver.MininetCliDriver.addLink" class="py-name" href="#" onclick="return doclink('link-13', 'addLink', 'link-13');">addLink</a></tt><tt class="py-op">(</tt><tt class="py-name">topSwitch</tt><tt class="py-op">,</tt><tt class="py-name">topHost</tt><tt class="py-op">)</tt> </tt>
152<a name="L22"></a><tt class="py-lineno">22</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-14" class="py-name"><a title="TestON.drivers.common.cli.emulator.mininetclidriver.MininetCliDriver.addLink" class="py-name" href="#" onclick="return doclink('link-14', 'addLink', 'link-13');">addLink</a></tt><tt class="py-op">(</tt><tt class="py-name">leftTopSwitch</tt><tt class="py-op">,</tt><tt class="py-name">leftTopHost</tt><tt class="py-op">)</tt> </tt>
153<a name="L23"></a><tt class="py-lineno">23</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-15" class="py-name"><a title="TestON.drivers.common.cli.emulator.mininetclidriver.MininetCliDriver.addLink" class="py-name" href="#" onclick="return doclink('link-15', 'addLink', 'link-13');">addLink</a></tt><tt class="py-op">(</tt><tt class="py-name">rightTopSwitch</tt><tt class="py-op">,</tt><tt class="py-name">rightTopHost</tt><tt class="py-op">)</tt> </tt>
154<a name="L24"></a><tt class="py-lineno">24</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-16" class="py-name"><a title="TestON.drivers.common.cli.emulator.mininetclidriver.MininetCliDriver.addLink" class="py-name" href="#" onclick="return doclink('link-16', 'addLink', 'link-13');">addLink</a></tt><tt class="py-op">(</tt><tt class="py-name">leftBotSwitch</tt><tt class="py-op">,</tt><tt class="py-name">leftBotHost</tt><tt class="py-op">)</tt> </tt>
155<a name="L25"></a><tt class="py-lineno">25</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-17" class="py-name"><a title="TestON.drivers.common.cli.emulator.mininetclidriver.MininetCliDriver.addLink" class="py-name" href="#" onclick="return doclink('link-17', 'addLink', 'link-13');">addLink</a></tt><tt class="py-op">(</tt><tt class="py-name">rightBotSwitch</tt><tt class="py-op">,</tt><tt class="py-name">rightBotHost</tt><tt class="py-op">)</tt> </tt>
156<a name="L26"></a><tt class="py-lineno">26</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-18" class="py-name"><a title="TestON.drivers.common.cli.emulator.mininetclidriver.MininetCliDriver.addLink" class="py-name" href="#" onclick="return doclink('link-18', 'addLink', 'link-13');">addLink</a></tt><tt class="py-op">(</tt><tt class="py-name">midBotSwitch</tt><tt class="py-op">,</tt><tt class="py-name">midBotHost</tt><tt class="py-op">)</tt> </tt>
157<a name="L27"></a><tt class="py-lineno">27</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-19" class="py-name"><a title="TestON.drivers.common.cli.emulator.mininetclidriver.MininetCliDriver.addLink" class="py-name" href="#" onclick="return doclink('link-19', 'addLink', 'link-13');">addLink</a></tt><tt class="py-op">(</tt><tt class="py-name">leftTopSwitch</tt><tt class="py-op">,</tt><tt class="py-name">rightTopSwitch</tt><tt class="py-op">)</tt> </tt>
158<a name="L28"></a><tt class="py-lineno">28</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-20" class="py-name"><a title="TestON.drivers.common.cli.emulator.mininetclidriver.MininetCliDriver.addLink" class="py-name" href="#" onclick="return doclink('link-20', 'addLink', 'link-13');">addLink</a></tt><tt class="py-op">(</tt><tt class="py-name">topSwitch</tt><tt class="py-op">,</tt><tt class="py-name">leftTopSwitch</tt><tt class="py-op">)</tt> </tt>
159<a name="L29"></a><tt class="py-lineno">29</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-21" class="py-name"><a title="TestON.drivers.common.cli.emulator.mininetclidriver.MininetCliDriver.addLink" class="py-name" href="#" onclick="return doclink('link-21', 'addLink', 'link-13');">addLink</a></tt><tt class="py-op">(</tt><tt class="py-name">topSwitch</tt><tt class="py-op">,</tt><tt class="py-name">rightTopSwitch</tt><tt class="py-op">)</tt> </tt>
160<a name="L30"></a><tt class="py-lineno">30</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-22" class="py-name"><a title="TestON.drivers.common.cli.emulator.mininetclidriver.MininetCliDriver.addLink" class="py-name" href="#" onclick="return doclink('link-22', 'addLink', 'link-13');">addLink</a></tt><tt class="py-op">(</tt><tt class="py-name">leftTopSwitch</tt><tt class="py-op">,</tt><tt class="py-name">leftBotSwitch</tt><tt class="py-op">)</tt> </tt>
161<a name="L31"></a><tt class="py-lineno">31</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-23" class="py-name"><a title="TestON.drivers.common.cli.emulator.mininetclidriver.MininetCliDriver.addLink" class="py-name" href="#" onclick="return doclink('link-23', 'addLink', 'link-13');">addLink</a></tt><tt class="py-op">(</tt><tt class="py-name">rightTopSwitch</tt><tt class="py-op">,</tt><tt class="py-name">rightBotSwitch</tt><tt class="py-op">)</tt> </tt>
162<a name="L32"></a><tt class="py-lineno">32</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-24" class="py-name"><a title="TestON.drivers.common.cli.emulator.mininetclidriver.MininetCliDriver.addLink" class="py-name" href="#" onclick="return doclink('link-24', 'addLink', 'link-13');">addLink</a></tt><tt class="py-op">(</tt><tt class="py-name">leftBotSwitch</tt><tt class="py-op">,</tt><tt class="py-name">midBotSwitch</tt><tt class="py-op">)</tt> </tt>
163<a name="L33"></a><tt class="py-lineno">33</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-25" class="py-name"><a title="TestON.drivers.common.cli.emulator.mininetclidriver.MininetCliDriver.addLink" class="py-name" href="#" onclick="return doclink('link-25', 'addLink', 'link-13');">addLink</a></tt><tt class="py-op">(</tt><tt class="py-name">midBotSwitch</tt><tt class="py-op">,</tt><tt class="py-name">rightBotSwitch</tt><tt class="py-op">)</tt> </tt>
164<a name="L34"></a><tt class="py-lineno">34</tt> <tt class="py-line"> </tt>
165<a name="L35"></a><tt class="py-lineno">35</tt> <tt class="py-line"> <tt class="py-name">agg1Switch</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-26" class="py-name"><a title="TestON.drivers.common.cli.emulator.mininetclidriver.MininetCliDriver.addSwitch" class="py-name" href="#" onclick="return doclink('link-26', 'addSwitch', 'link-1');">addSwitch</a></tt><tt class="py-op">(</tt><tt class="py-string">'s4'</tt><tt class="py-op">,</tt><tt class="py-name">dpid</tt> <tt class="py-op">=</tt> <tt class="py-string">'3004'</tt><tt class="py-op">.</tt><tt class="py-name">zfill</tt><tt class="py-op">(</tt><tt class="py-number">16</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
166<a name="L36"></a><tt class="py-lineno">36</tt> <tt class="py-line"> <tt class="py-name">agg2Switch</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-27" class="py-name"><a title="TestON.drivers.common.cli.emulator.mininetclidriver.MininetCliDriver.addSwitch" class="py-name" href="#" onclick="return doclink('link-27', 'addSwitch', 'link-1');">addSwitch</a></tt><tt class="py-op">(</tt><tt class="py-string">'s7'</tt><tt class="py-op">,</tt><tt class="py-name">dpid</tt> <tt class="py-op">=</tt> <tt class="py-string">'6007'</tt><tt class="py-op">.</tt><tt class="py-name">zfill</tt><tt class="py-op">(</tt><tt class="py-number">16</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
167<a name="L37"></a><tt class="py-lineno">37</tt> <tt class="py-line"> <tt class="py-name">agg1Host</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-28" class="py-name"><a title="TestON.drivers.common.cli.emulator.mininetclidriver.MininetCliDriver.addHost" class="py-name" href="#" onclick="return doclink('link-28', 'addHost', 'link-7');">addHost</a></tt><tt class="py-op">(</tt><tt class="py-string">'h4'</tt><tt class="py-op">)</tt> </tt>
168<a name="L38"></a><tt class="py-lineno">38</tt> <tt class="py-line"> <tt class="py-name">agg2Host</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-29" class="py-name"><a title="TestON.drivers.common.cli.emulator.mininetclidriver.MininetCliDriver.addHost" class="py-name" href="#" onclick="return doclink('link-29', 'addHost', 'link-7');">addHost</a></tt><tt class="py-op">(</tt><tt class="py-string">'h7'</tt><tt class="py-op">)</tt> </tt>
169<a name="L39"></a><tt class="py-lineno">39</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-30" class="py-name"><a title="TestON.drivers.common.cli.emulator.mininetclidriver.MininetCliDriver.addLink" class="py-name" href="#" onclick="return doclink('link-30', 'addLink', 'link-13');">addLink</a></tt><tt class="py-op">(</tt><tt class="py-name">agg1Switch</tt><tt class="py-op">,</tt><tt class="py-name">agg1Host</tt><tt class="py-op">)</tt> </tt>
170<a name="L40"></a><tt class="py-lineno">40</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-31" class="py-name"><a title="TestON.drivers.common.cli.emulator.mininetclidriver.MininetCliDriver.addLink" class="py-name" href="#" onclick="return doclink('link-31', 'addLink', 'link-13');">addLink</a></tt><tt class="py-op">(</tt><tt class="py-name">agg2Switch</tt><tt class="py-op">,</tt><tt class="py-name">agg2Host</tt><tt class="py-op">)</tt> </tt>
171<a name="L41"></a><tt class="py-lineno">41</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-32" class="py-name"><a title="TestON.drivers.common.cli.emulator.mininetclidriver.MininetCliDriver.addLink" class="py-name" href="#" onclick="return doclink('link-32', 'addLink', 'link-13');">addLink</a></tt><tt class="py-op">(</tt><tt class="py-name">agg1Switch</tt><tt class="py-op">,</tt> <tt class="py-name">leftBotSwitch</tt><tt class="py-op">)</tt> </tt>
172<a name="L42"></a><tt class="py-lineno">42</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-33" class="py-name"><a title="TestON.drivers.common.cli.emulator.mininetclidriver.MininetCliDriver.addLink" class="py-name" href="#" onclick="return doclink('link-33', 'addLink', 'link-13');">addLink</a></tt><tt class="py-op">(</tt><tt class="py-name">agg2Switch</tt><tt class="py-op">,</tt> <tt class="py-name">rightBotSwitch</tt><tt class="py-op">)</tt> </tt>
173<a name="L43"></a><tt class="py-lineno">43</tt> <tt class="py-line"> </tt>
174<a name="L44"></a><tt class="py-lineno">44</tt> <tt class="py-line"> <tt class="py-keyword">for</tt> <tt class="py-name">i</tt> <tt class="py-keyword">in</tt> <tt class="py-name">range</tt><tt class="py-op">(</tt><tt class="py-number">10</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
175<a name="L45"></a><tt class="py-lineno">45</tt> <tt class="py-line"> <tt class="py-name">num</tt> <tt class="py-op">=</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">i</tt><tt class="py-op">+</tt><tt class="py-number">8</tt><tt class="py-op">)</tt> </tt>
176<a name="L46"></a><tt class="py-lineno">46</tt> <tt class="py-line"> <tt class="py-name">switch</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-34" class="py-name"><a title="TestON.drivers.common.cli.emulator.mininetclidriver.MininetCliDriver.addSwitch" class="py-name" href="#" onclick="return doclink('link-34', 'addSwitch', 'link-1');">addSwitch</a></tt><tt class="py-op">(</tt><tt class="py-string">'s'</tt><tt class="py-op">+</tt><tt class="py-name">num</tt><tt class="py-op">,</tt><tt class="py-name">dpid</tt> <tt class="py-op">=</tt> <tt class="py-op">(</tt><tt class="py-string">'30'</tt><tt class="py-op">+</tt><tt class="py-name">num</tt><tt class="py-op">.</tt><tt class="py-name">zfill</tt><tt class="py-op">(</tt><tt class="py-number">2</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">zfill</tt><tt class="py-op">(</tt><tt class="py-number">16</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
177<a name="L47"></a><tt class="py-lineno">47</tt> <tt class="py-line"> <tt class="py-name">host</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-35" class="py-name"><a title="TestON.drivers.common.cli.emulator.mininetclidriver.MininetCliDriver.addHost" class="py-name" href="#" onclick="return doclink('link-35', 'addHost', 'link-7');">addHost</a></tt><tt class="py-op">(</tt><tt class="py-string">'h'</tt><tt class="py-op">+</tt><tt class="py-name">num</tt><tt class="py-op">)</tt> </tt>
178<a name="L48"></a><tt class="py-lineno">48</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-36" class="py-name"><a title="TestON.drivers.common.cli.emulator.mininetclidriver.MininetCliDriver.addLink" class="py-name" href="#" onclick="return doclink('link-36', 'addLink', 'link-13');">addLink</a></tt><tt class="py-op">(</tt><tt class="py-name">switch</tt><tt class="py-op">,</tt> <tt class="py-name">host</tt><tt class="py-op">)</tt> </tt>
179<a name="L49"></a><tt class="py-lineno">49</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-37" class="py-name"><a title="TestON.drivers.common.cli.emulator.mininetclidriver.MininetCliDriver.addLink" class="py-name" href="#" onclick="return doclink('link-37', 'addLink', 'link-13');">addLink</a></tt><tt class="py-op">(</tt><tt class="py-name">switch</tt><tt class="py-op">,</tt> <tt class="py-name">agg1Switch</tt><tt class="py-op">)</tt> </tt>
180<a name="L50"></a><tt class="py-lineno">50</tt> <tt class="py-line"> </tt>
181<a name="L51"></a><tt class="py-lineno">51</tt> <tt class="py-line"> <tt class="py-keyword">for</tt> <tt class="py-name">i</tt> <tt class="py-keyword">in</tt> <tt class="py-name">range</tt><tt class="py-op">(</tt><tt class="py-number">10</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
182<a name="L52"></a><tt class="py-lineno">52</tt> <tt class="py-line"> <tt class="py-name">num</tt> <tt class="py-op">=</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">i</tt><tt class="py-op">+</tt><tt class="py-number">18</tt><tt class="py-op">)</tt> </tt>
183<a name="L53"></a><tt class="py-lineno">53</tt> <tt class="py-line"> <tt class="py-name">switch</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-38" class="py-name"><a title="TestON.drivers.common.cli.emulator.mininetclidriver.MininetCliDriver.addSwitch" class="py-name" href="#" onclick="return doclink('link-38', 'addSwitch', 'link-1');">addSwitch</a></tt><tt class="py-op">(</tt><tt class="py-string">'s'</tt><tt class="py-op">+</tt><tt class="py-name">num</tt><tt class="py-op">,</tt><tt class="py-name">dpid</tt> <tt class="py-op">=</tt> <tt class="py-op">(</tt><tt class="py-string">'60'</tt><tt class="py-op">+</tt><tt class="py-name">num</tt><tt class="py-op">.</tt><tt class="py-name">zfill</tt><tt class="py-op">(</tt><tt class="py-number">2</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">zfill</tt><tt class="py-op">(</tt><tt class="py-number">16</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
184<a name="L54"></a><tt class="py-lineno">54</tt> <tt class="py-line"> <tt class="py-name">host</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-39" class="py-name"><a title="TestON.drivers.common.cli.emulator.mininetclidriver.MininetCliDriver.addHost" class="py-name" href="#" onclick="return doclink('link-39', 'addHost', 'link-7');">addHost</a></tt><tt class="py-op">(</tt><tt class="py-string">'h'</tt><tt class="py-op">+</tt><tt class="py-name">num</tt><tt class="py-op">)</tt> </tt>
185<a name="L55"></a><tt class="py-lineno">55</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-40" class="py-name"><a title="TestON.drivers.common.cli.emulator.mininetclidriver.MininetCliDriver.addLink" class="py-name" href="#" onclick="return doclink('link-40', 'addLink', 'link-13');">addLink</a></tt><tt class="py-op">(</tt><tt class="py-name">switch</tt><tt class="py-op">,</tt> <tt class="py-name">host</tt><tt class="py-op">)</tt> </tt>
186<a name="L56"></a><tt class="py-lineno">56</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-41" class="py-name"><a title="TestON.drivers.common.cli.emulator.mininetclidriver.MininetCliDriver.addLink" class="py-name" href="#" onclick="return doclink('link-41', 'addLink', 'link-13');">addLink</a></tt><tt class="py-op">(</tt><tt class="py-name">switch</tt><tt class="py-op">,</tt> <tt class="py-name">agg2Switch</tt><tt class="py-op">)</tt> </tt>
187</div></div><a name="L57"></a><tt class="py-lineno">57</tt> <tt class="py-line"> </tt>
188<a name="L58"></a><tt class="py-lineno">58</tt> <tt class="py-line"><tt id="link-42" class="py-name" targets="Variable TestON.tests.HAclusterRestart.dependencies.obelisk.topos=TestON.tests.HAclusterRestart.dependencies.obelisk-module.html#topos,Variable TestON.tests.HAminorityRestart.dependencies.obelisk.topos=TestON.tests.HAminorityRestart.dependencies.obelisk-module.html#topos,Variable TestON.tests.HAsanity.dependencies.obelisk.topos=TestON.tests.HAsanity.dependencies.obelisk-module.html#topos,Variable TestON.tests.HAsingleInstanceRestart.dependencies.obelisk.topos=TestON.tests.HAsingleInstanceRestart.dependencies.obelisk-module.html#topos"><a title="TestON.tests.HAclusterRestart.dependencies.obelisk.topos
189TestON.tests.HAminorityRestart.dependencies.obelisk.topos
190TestON.tests.HAsanity.dependencies.obelisk.topos
191TestON.tests.HAsingleInstanceRestart.dependencies.obelisk.topos" class="py-name" href="#" onclick="return doclink('link-42', 'topos', 'link-42');">topos</a></tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt> <tt class="py-string">'obelisk'</tt><tt class="py-op">:</tt> <tt class="py-op">(</tt><tt class="py-keyword">lambda</tt><tt class="py-op">:</tt> <tt id="link-43" class="py-name" targets="Class TestON.tests.HAclusterRestart.dependencies.obelisk.ObeliskTopo=TestON.tests.HAclusterRestart.dependencies.obelisk.ObeliskTopo-class.html,Class TestON.tests.HAminorityRestart.dependencies.obelisk.ObeliskTopo=TestON.tests.HAminorityRestart.dependencies.obelisk.ObeliskTopo-class.html,Class TestON.tests.HAsanity.dependencies.obelisk.ObeliskTopo=TestON.tests.HAsanity.dependencies.obelisk.ObeliskTopo-class.html,Class TestON.tests.HAsingleInstanceRestart.dependencies.obelisk.ObeliskTopo=TestON.tests.HAsingleInstanceRestart.dependencies.obelisk.ObeliskTopo-class.html"><a title="TestON.tests.HAclusterRestart.dependencies.obelisk.ObeliskTopo
192TestON.tests.HAminorityRestart.dependencies.obelisk.ObeliskTopo
193TestON.tests.HAsanity.dependencies.obelisk.ObeliskTopo
194TestON.tests.HAsingleInstanceRestart.dependencies.obelisk.ObeliskTopo" class="py-name" href="#" onclick="return doclink('link-43', 'ObeliskTopo', 'link-43');">ObeliskTopo</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">)</tt> <tt class="py-op">}</tt> </tt>
195<a name="L59"></a><tt class="py-lineno">59</tt> <tt class="py-line"> </tt>
196<a name="run"></a><div id="run-def"><a name="L60"></a><tt class="py-lineno">60</tt> <a class="py-toggle" href="#" id="run-toggle" onclick="return toggle('run');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="TestON.tests.HAclusterRestart.dependencies.obelisk-module.html#run">run</a><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
197</div><div id="run-collapsed" style="display:none;" pad="++" indent="++++"></div><div id="run-expanded"><a name="L61"></a><tt class="py-lineno">61</tt> <tt class="py-line"> <tt class="py-name">topo</tt> <tt class="py-op">=</tt> <tt id="link-44" class="py-name"><a title="TestON.tests.HAclusterRestart.dependencies.obelisk.ObeliskTopo
198TestON.tests.HAminorityRestart.dependencies.obelisk.ObeliskTopo
199TestON.tests.HAsanity.dependencies.obelisk.ObeliskTopo
200TestON.tests.HAsingleInstanceRestart.dependencies.obelisk.ObeliskTopo" class="py-name" href="#" onclick="return doclink('link-44', 'ObeliskTopo', 'link-43');">ObeliskTopo</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
201<a name="L62"></a><tt class="py-lineno">62</tt> <tt class="py-line"> <tt id="link-45" class="py-name" targets="Method TestON.drivers.common.cli.emulator.mininetclidriver.MininetCliDriver.net()=TestON.drivers.common.cli.emulator.mininetclidriver.MininetCliDriver-class.html#net"><a title="TestON.drivers.common.cli.emulator.mininetclidriver.MininetCliDriver.net" class="py-name" href="#" onclick="return doclink('link-45', 'net', 'link-45');">net</a></tt> <tt class="py-op">=</tt> <tt class="py-name">Mininet</tt><tt class="py-op">(</tt> <tt class="py-name">topo</tt><tt class="py-op">=</tt><tt class="py-name">topo</tt><tt class="py-op">,</tt> <tt id="link-46" class="py-name" targets="Package TestON.drivers.common.api.controller=TestON.drivers.common.api.controller-module.html"><a title="TestON.drivers.common.api.controller" class="py-name" href="#" onclick="return doclink('link-46', 'controller', 'link-46');">controller</a></tt><tt class="py-op">=</tt><tt class="py-name">RemoteController</tt><tt class="py-op">,</tt> <tt class="py-name">autoSetMacs</tt><tt class="py-op">=</tt><tt class="py-name">True</tt> <tt class="py-op">)</tt> </tt>
202<a name="L63"></a><tt class="py-lineno">63</tt> <tt class="py-line"> <tt id="link-47" class="py-name"><a title="TestON.drivers.common.cli.emulator.mininetclidriver.MininetCliDriver.net" class="py-name" href="#" onclick="return doclink('link-47', 'net', 'link-45');">net</a></tt><tt class="py-op">.</tt><tt class="py-name">start</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
203<a name="L64"></a><tt class="py-lineno">64</tt> <tt class="py-line"> <tt id="link-48" class="py-name" targets="Class TestON.bin.cli.CLI=TestON.bin.cli.CLI-class.html,Class TestON.drivers.common.clidriver.CLI=TestON.drivers.common.clidriver.CLI-class.html"><a title="TestON.bin.cli.CLI
204TestON.drivers.common.clidriver.CLI" class="py-name" href="#" onclick="return doclink('link-48', 'CLI', 'link-48');">CLI</a></tt><tt class="py-op">(</tt> <tt id="link-49" class="py-name"><a title="TestON.drivers.common.cli.emulator.mininetclidriver.MininetCliDriver.net" class="py-name" href="#" onclick="return doclink('link-49', 'net', 'link-45');">net</a></tt> <tt class="py-op">)</tt> </tt>
205<a name="L65"></a><tt class="py-lineno">65</tt> <tt class="py-line"> <tt id="link-50" class="py-name"><a title="TestON.drivers.common.cli.emulator.mininetclidriver.MininetCliDriver.net" class="py-name" href="#" onclick="return doclink('link-50', 'net', 'link-45');">net</a></tt><tt class="py-op">.</tt><tt id="link-51" class="py-name" targets="Method TestON.bin.cli.TestThread.stop()=TestON.bin.cli.TestThread-class.html#stop"><a title="TestON.bin.cli.TestThread.stop" class="py-name" href="#" onclick="return doclink('link-51', 'stop', 'link-51');">stop</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
206</div><a name="L66"></a><tt class="py-lineno">66</tt> <tt class="py-line"> </tt>
207<a name="L67"></a><tt class="py-lineno">67</tt> <tt class="py-line"><tt class="py-keyword">if</tt> <tt class="py-name">__name__</tt> <tt class="py-op">==</tt> <tt class="py-string">'__main__'</tt><tt class="py-op">:</tt> </tt>
208<a name="L68"></a><tt class="py-lineno">68</tt> <tt class="py-line"> <tt class="py-name">setLogLevel</tt><tt class="py-op">(</tt> <tt class="py-string">'info'</tt> <tt class="py-op">)</tt> </tt>
209<a name="L69"></a><tt class="py-lineno">69</tt> <tt class="py-line"> <tt id="link-52" class="py-name" targets="Method TestON.bin.cli.TestThread.run()=TestON.bin.cli.TestThread-class.html#run,Method TestON.core.Thread.Thread.run()=TestON.core.Thread.Thread-class.html#run,Method TestON.core.teston.TestON.run()=TestON.core.teston.TestON-class.html#run,Function TestON.tests.HAclusterRestart.dependencies.obelisk.run()=TestON.tests.HAclusterRestart.dependencies.obelisk-module.html#run,Function TestON.tests.HAminorityRestart.dependencies.obelisk.run()=TestON.tests.HAminorityRestart.dependencies.obelisk-module.html#run,Function TestON.tests.HAsanity.dependencies.obelisk.run()=TestON.tests.HAsanity.dependencies.obelisk-module.html#run,Function TestON.tests.HAsingleInstanceRestart.dependencies.obelisk.run()=TestON.tests.HAsingleInstanceRestart.dependencies.obelisk-module.html#run"><a title="TestON.bin.cli.TestThread.run
210TestON.core.Thread.Thread.run
211TestON.core.teston.TestON.run
212TestON.tests.HAclusterRestart.dependencies.obelisk.run
213TestON.tests.HAminorityRestart.dependencies.obelisk.run
214TestON.tests.HAsanity.dependencies.obelisk.run
215TestON.tests.HAsingleInstanceRestart.dependencies.obelisk.run" class="py-name" href="#" onclick="return doclink('link-52', 'run', 'link-52');">run</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
216<a name="L70"></a><tt class="py-lineno">70</tt> <tt class="py-line"> </tt><script type="text/javascript">
217<!--
218expandto(location.href);
219// -->
220</script>
221</pre>
222<br />
223<!-- ==================== NAVIGATION BAR ==================== -->
224<table class="navbar" border="0" width="100%" cellpadding="0"
225 bgcolor="#a0c0ff" cellspacing="0">
226 <tr valign="middle">
227 <!-- Home link -->
228 <th>&nbsp;&nbsp;&nbsp;<a
229 href="TestON-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>
230
231 <!-- Tree link -->
232 <th>&nbsp;&nbsp;&nbsp;<a
233 href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>
234
235 <!-- Index link -->
236 <th>&nbsp;&nbsp;&nbsp;<a
237 href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>
238
239 <!-- Help link -->
240 <th>&nbsp;&nbsp;&nbsp;<a
241 href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>
242
243 <!-- Project homepage -->
244 <th class="navbar" align="right" width="100%">
245 <table border="0" cellpadding="0" cellspacing="0">
246 <tr><th class="navbar" align="center"
247 >TestON</th>
248 </tr></table></th>
249 </tr>
250</table>
251<table border="0" cellpadding="0" cellspacing="0" width="100%%">
252 <tr>
253 <td align="left" class="footer">
254 Generated by Epydoc 3.0.1 on Mon Aug 10 11:12:36 2015
255 </td>
256 <td align="right" class="footer">
257 <a target="mainFrame" href="http://epydoc.sourceforge.net"
258 >http://epydoc.sourceforge.net</a>
259 </td>
260 </tr>
261</table>
262
263<script type="text/javascript">
264 <!--
265 // Private objects are initially displayed (because if
266 // javascript is turned off then we want them to be
267 // visible); but by default, we want to hide them. So hide
268 // them unless we have a cookie that says to show them.
269 checkCookie();
270 // -->
271</script>
272</body>
273</html>