Correcting get_port_indexes dictionary references
This commit is contained in:
parent
ee6ba52694
commit
f788e5f7b1
8
closx
8
closx
@ -236,12 +236,12 @@ class Clos():
|
||||
'''
|
||||
Summary:
|
||||
Calculates port indexes for both sides of edges in the networkx graph object. The lowest available index is always used.
|
||||
Once used, port indexes are removed from the free_ports uplinks or downlinks list.
|
||||
Once used, port indexes are removed from the free_port_indexes uplinks or downlinks list.
|
||||
Design principles of a Clos network define that port radix should be equal north and south.
|
||||
Max amount of uplink or downlink ports is 24.
|
||||
Exits if the number of port indexes required exceed the max, prompts user to reduce spine, tier2 or tier1 size.
|
||||
|
||||
free_ports dict example:
|
||||
free_port_indexes dict example:
|
||||
{
|
||||
's1-r1': {
|
||||
'uplinks': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23],
|
||||
@ -253,9 +253,9 @@ class Clos():
|
||||
self: Clos object
|
||||
|
||||
Returns:
|
||||
port_indexes: Dict of dicts, keyed by edge index, containing assigned a and b end indexes.
|
||||
allocated_port_indexes: Dict of dicts, keyed by edge index, containing assigned a and b end indexes.
|
||||
|
||||
port_indexes dict example:
|
||||
allocated_port_indexes dict example:
|
||||
{
|
||||
0: {'a_end_index': 24, 'b_end_index': 0},
|
||||
1: {'a_end_index': 25, 'b_end_index': 0},
|
||||
|
Loading…
Reference in New Issue
Block a user