Support out-of-order link addition

Sort interface names before passing to dpctl for kernel switch, so that
links for multipath topologies can be added in any order.
This commit is contained in:
Brandon Heller
2010-01-06 21:23:33 -08:00
parent 6d2cd77b5a
commit d856c81896
2 changed files with 10 additions and 2 deletions
+2
View File
@@ -159,6 +159,8 @@ class Mininet(object):
make_veth_pair(src_intf, dst_intf)
src_node.intfs.append(src_intf)
dst_node.intfs.append(dst_intf)
src_node.ports[src_port] = src_intf
dst_node.ports[dst_port] = dst_intf
#lg.info('\n')
#lg.info('added intf %s to src node %x\n' % (src_intf, src))
#lg.info('added intf %s to dst node %x\n' % (dst_intf, dst))