% Uplink ports on Aggregation switches
\foreach \aggregation in {1,...,4} {
\foreach \core/\port in {1/47,2/48} {
\node [AggLabel] at (Agg\aggregation Core\core) {1/\port};
}
}
% Downlink ports on Core switches
\foreach \aggregation/\module/\port in {1/1/43, 2/1/44, 3/2/43, 4/2/44} {
\foreach \core in {1,2} {
\node [Label] at (Core\core Agg\aggregation) {\module/\port};
}
}