from mininet.topo import ( SingleSwitchTopo, LinearTopo,
                           SingleSwitchReversedTopo )
from mininet.topolib import TreeTopo
from mininet.util import buildTopo
import psycopg2

TOPOS = { 'linear': LinearTopo,
          'reversed': SingleSwitchReversedTopo,
          'single': SingleSwitchTopo,
          'tree': TreeTopo,
          'torus': TorusTopo }

def build(opts):
    return buildTopo(TOPOS, opts)

from mininet.topo import ( SingleSwitchTopo, LinearTopo,
                           SingleSwitchReversedTopo )
from mininet.topolib import TreeTopo
from mininet.util import buildTopo
import psycopg2

TOPOS = { 'linear': LinearTopo,
          'reversed': SingleSwitchReversedTopo,
          'single': SingleSwitchTopo,
          'tree': TreeTopo
      }

def build(opts):
    return buildTopo(TOPOS, opts)

Fix bug after removing torus
Fix bug after removing torus

  from mininet.topo import ( SingleSwitchTopo, LinearTopo,
                             SingleSwitchReversedTopo )
  from mininet.topolib import TreeTopo
  from mininet.util import buildTopo
  import psycopg2
  
  TOPOS = { 'linear': LinearTopo,
            'reversed': SingleSwitchReversedTopo,
            'single': SingleSwitchTopo,
-           'tree': TreeTopo,
+           'tree': TreeTopo
-           'torus': TorusTopo }
+       }
  
  def build(opts):
      return buildTopo(TOPOS, opts)
  
Fix bug after removing torus
## Code Before:
from mininet.topo import ( SingleSwitchTopo, LinearTopo,
                           SingleSwitchReversedTopo )
from mininet.topolib import TreeTopo
from mininet.util import buildTopo
import psycopg2

TOPOS = { 'linear': LinearTopo,
          'reversed': SingleSwitchReversedTopo,
          'single': SingleSwitchTopo,
          'tree': TreeTopo,
          'torus': TorusTopo }

def build(opts):
    return buildTopo(TOPOS, opts)

## Instruction:
Fix bug after removing torus
## Code After:
from mininet.topo import ( SingleSwitchTopo, LinearTopo,
                           SingleSwitchReversedTopo )
from mininet.topolib import TreeTopo
from mininet.util import buildTopo
import psycopg2

TOPOS = { 'linear': LinearTopo,
          'reversed': SingleSwitchReversedTopo,
          'single': SingleSwitchTopo,
          'tree': TreeTopo
      }

def build(opts):
    return buildTopo(TOPOS, opts)
