Skip to content
Snippets Groups Projects
Commit bf5becc7 authored by Bob Lantz's avatar Bob Lantz
Browse files

Get rid of SWITCH_PORT_BASE since it's 1 for OF >= 1.0.

parent 216a4b7c
No related branches found
No related tags found
No related merge requests found
......@@ -16,8 +16,6 @@
# from networkx.classes.graph import Graph
from networkx import Graph
from mininet.node import SWITCH_PORT_BASE
class NodeID(object):
'''Topo node identifier.'''
......@@ -156,8 +154,8 @@ def add_port(self, src, dst):
@param src source switch DPID
@param dst destination switch DPID
'''
src_base = SWITCH_PORT_BASE if self.is_switch(src) else 0
dst_base = SWITCH_PORT_BASE if self.is_switch(dst) else 0
src_base = 1 if self.is_switch(src) else 0
dst_base = 1 if self.is_switch(dst) else 0
if src not in self.ports:
self.ports[src] = {}
if dst not in self.ports[src]:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment