def plug_l2_gw_service(cluster, lswitch_id, lport_id, gateway_id, vlan_id=None):
 att_obj = {'type': 'L2GatewayAttachment', 'l2_gateway_service_uuid': gateway_id}
 if vlan_id:
  att_obj['vlan_id'] = vlan_id
 return _plug_interface(cluster, lswitch_id, lport_id, att_obj)

def plug_l2_gw_service ( cluster , lswitch_id , lport_id , gateway_id , vlan_id = None ) : att_obj = { 'type' : 'L2GatewayAttachment' , 'l2_gateway_service_uuid' : gateway_id } if vlan_id : att_obj [ 'vlan_id' ] = vlan_id return _plug_interface ( cluster , lswitch_id , lport_id , att_obj )
plug a layer-2 gateway attachment object in a logical port .