Use lookup instead of hash for CA ports
Use lookup table instead of glib hash for switches ports
Use lookup tables instead of glib hash for links