Pt2Pt.py (9862:54d6728d99cf) Pt2Pt.py (11663:cf870cd20cfc)
1# Copyright (c) 2011 Advanced Micro Devices, Inc.
2# 2011 Massachusetts Institute of Technology
3# All rights reserved.
4#
5# Redistribution and use in source and binary forms, with or without
6# modification, are permitted provided that the following conditions are
7# met: redistributions of source code must retain the above copyright
8# notice, this list of conditions and the following disclaimer;

--- 43 unchanged lines hidden (view full) ---

52
53 link_count = len(nodes)
54 int_links = []
55 for i in xrange(len(nodes)):
56 for j in xrange(len(nodes)):
57 if (i != j):
58 link_count += 1
59 int_links.append(IntLink(link_id=link_count,
1# Copyright (c) 2011 Advanced Micro Devices, Inc.
2# 2011 Massachusetts Institute of Technology
3# All rights reserved.
4#
5# Redistribution and use in source and binary forms, with or without
6# modification, are permitted provided that the following conditions are
7# met: redistributions of source code must retain the above copyright
8# notice, this list of conditions and the following disclaimer;

--- 43 unchanged lines hidden (view full) ---

52
53 link_count = len(nodes)
54 int_links = []
55 for i in xrange(len(nodes)):
56 for j in xrange(len(nodes)):
57 if (i != j):
58 link_count += 1
59 int_links.append(IntLink(link_id=link_count,
60 node_a=routers[i],
61 node_b=routers[j]))
60 src_node=routers[i],
61 dst_node=routers[j]))
62
63 network.int_links = int_links
62
63 network.int_links = int_links