Revision b7097daa mininet/topo.py

View differences:

mininet/topo.py
132 132
        if src not in self.ports:
133 133
            self.ports[src] = {}
134 134
        if dst not in self.ports[src]:
135
            # num outlinks    
135
            # num outlinks
136 136
            self.ports[src][dst] = len(self.ports[src]) + src_base
137 137
        if dst not in self.ports:
138 138
            self.ports[dst] = {}
139 139
        if src not in self.ports[dst]:
140
            # num outlinks 
140
            # num outlinks
141 141
            self.ports[dst][src] = len(self.ports[dst]) + dst_base
142 142

  
143 143
    def node_enabled(self, dpid):
......
185 185
        '''Returns true if node is a switch.'''
186 186
        return self.node_info[n].is_switch
187 187

  
188

  
189 188
    def switches(self, enabled = True):
190 189
        '''Return switches.
191 190

  

Also available in: Unified diff