Revision bb35d041

View differences:

mininet/topolib.py
65 65
                # dpid cannot be zero for OVS
66 66
                dpid = ( i + 1 ) * 256 + ( j + 1 )
67 67
                switch = switches[ i, j ] = self.addSwitch(
68
                    's' + loc, dpid='%016x' % dpid )
68
                    's' + loc, dpid='%x' % dpid )
69 69
                for k in range( 0, n ):
70 70
                    host = hosts[ i, j, k ] = self.addHost( genHostName( loc, k + 1 ) )
71 71
                    self.addLink( host, switch )

Also available in: Unified diff