Use ports instead of port, type and code are integers

[#73594384]

Signed-off-by: James Myers <jmyers@pivotallabs.com>