aboutsummaryrefslogtreecommitdiffstats
path: root/framework/src/onos/tools/test/topos/rftesttopo.py
diff options
context:
space:
mode:
authorCNlucius <lukai1@huawei.com>2016-09-13 11:40:12 +0800
committerCNlucius <lukai1@huawei.com>2016-09-13 11:41:53 +0800
commitb731e2f1dd0972409b136aebc7b463dd72c9cfad (patch)
tree5107d7d80c19ad8076c2c97c2b5ef8d1cf3ab903 /framework/src/onos/tools/test/topos/rftesttopo.py
parentee93993458266114c29271a481ef9ce7ce621b2a (diff)
ONOSFW-171
O/S-SFC-ONOS scenario documentation Change-Id: I51ae1cf736ea24ab6680f8edca1b2bf5dd598365 Signed-off-by: CNlucius <lukai1@huawei.com>
Diffstat (limited to 'framework/src/onos/tools/test/topos/rftesttopo.py')
-rw-r--r--framework/src/onos/tools/test/topos/rftesttopo.py59
1 files changed, 0 insertions, 59 deletions
diff --git a/framework/src/onos/tools/test/topos/rftesttopo.py b/framework/src/onos/tools/test/topos/rftesttopo.py
deleted file mode 100644
index 9b975785..00000000
--- a/framework/src/onos/tools/test/topos/rftesttopo.py
+++ /dev/null
@@ -1,59 +0,0 @@
-#!/usr/bin/env python
-
-"""
-"""
-from mininet.topo import Topo
-from mininet.net import Mininet
-from mininet.node import RemoteController
-from mininet.node import Node
-from mininet.node import CPULimitedHost
-from mininet.link import TCLink
-from mininet.cli import CLI
-from mininet.log import setLogLevel
-from mininet.util import dumpNodeConnections
-
-class ReactiveForwardingTestTopo( Topo ):
- "Internet Topology Zoo Specimen."
-
- def __init__( self ):
- "Create a topology."
-
- # Initialize Topology
- Topo.__init__( self )
-
- # add nodes, switches first...
- s1 = self.addSwitch( 's1' )
- s2 = self.addSwitch( 's2' )
- s3 = self.addSwitch( 's3' )
- s4 = self.addSwitch( 's4' )
- s5 = self.addSwitch( 's5' )
- s6 = self.addSwitch( 's6' )
- s7 = self.addSwitch( 's7' )
- s8 = self.addSwitch( 's8' )
- s9 = self.addSwitch( 's9' )
-
- # ... and now hosts
- h1 = self.addHost( 'h1' )
- h2 = self.addHost( 'h2' )
- h3 = self.addHost( 'h3' )
- h4 = self.addHost( 'h4' )
-
- # add edges between switch and corresponding host
- self.addLink( s1 , h1 )
- self.addLink( s2 , h2 )
- self.addLink( s3 , h3 )
- self.addLink( s4 , h4 )
-
- # add edges between switches
- self.addLink( s1 , s5 )
- self.addLink( s2 , s5 )
- self.addLink( s2 , s8 )
- self.addLink( s3 , s4 )
- self.addLink( s3 , s7 )
- self.addLink( s4 , s5 )
- self.addLink( s6 , s8 )
- self.addLink( s6 , s7 )
- self.addLink( s5 , s9 )
- self.addLink( s6 , s9 )
-
-topos = { 'att': ( lambda: ReactiveForwardingTestTopo() ) }