swconfig: support setting SWITCH_TYPE_LINK attributes