def delete_port(context, port_id):
 port_id = port_id[0:11]
 session = context.session
 with session.begin(subtransactions=True):
  port = session.query(BrocadePort).filter_by(port_id=port_id).first()
  if (port is not None):
   session.delete(port)

def delete_port ( context , port_id ) : port_id = port_id [ 0 : 11 ] session = context . session with session . begin ( subtransactions = True ) : port = session . query ( BrocadePort ) . filter_by ( port_id = port_id ) . first ( ) if ( port is not None ) : session . delete ( port )
delete brocade specific port .