def _translate_bridged(attributes, net_attr): attributes['bridged'] = net_attr['bridged'] if net_attr['bridged']: attributes['stp'] = bridges.stp_booleanize(net_attr['stp'])